Package com.jme3.system.ios
Class ObjcNativeObject
java.lang.Object
com.jme3.system.ios.ObjcNativeObject
- Direct Known Subclasses:
IosHarness
Java Object that represents a native iOS class. You can call methods and
retrieve objects from the native object via this class.
-
Constructor Summary
ConstructorDescriptionObjcNativeObject
(long nativeObject) Creates a new native object representation -
Method Summary
Modifier and TypeMethodDescriptionperformSelector
(String selector) Performs the given selector on the native AppDelegate, equivalent to calling a method in java.void
performSelectorInBackground
(String selector) Performs the given selector on the native AppDelegate, run it in the background.void
performSelectorInBackgroundWithObject
(String selector, ObjcNativeObject object) Performs the given selector on the native AppDelegate, run it in the backgroundvoid
performSelectorOnMainThread
(String selector) Performs the given selector on the native AppDelegate, run it on the main thread.void
performSelectorOnMainThreadWithObject
(String selector, ObjcNativeObject object) Performs the given selector on the native AppDelegate, run it on the main thread.performSelectorWithObject
(String selector, ObjcNativeObject object) Performs the given selector on the native AppDelegate, equivalent to calling a method in java.
-
Constructor Details
-
ObjcNativeObject
public ObjcNativeObject(long nativeObject) Creates a new native object representation- Parameters:
nativeObject
- The id of the native object, created via cast of object to jlong
-
-
Method Details
-
performSelector
Performs the given selector on the native AppDelegate, equivalent to calling a method in java.- Parameters:
selector
- The selector (name of the method) to perform.- Returns:
- The object in form of a long id if any is returned.
-
performSelectorWithObject
Performs the given selector on the native AppDelegate, equivalent to calling a method in java.- Parameters:
selector
- The selector (name of the method) to perform.object
- An object that was before returned from native code.- Returns:
- The object in form of a long id if any is returned.
-
performSelectorOnMainThread
Performs the given selector on the native AppDelegate, run it on the main thread.- Parameters:
selector
- The selector (name of the method) to perform.
-
performSelectorOnMainThreadWithObject
Performs the given selector on the native AppDelegate, run it on the main thread.- Parameters:
selector
- The selector (name of the method) to perform.object
- An object that was before returned from native code.
-
performSelectorInBackground
Performs the given selector on the native AppDelegate, run it in the background.- Parameters:
selector
- The selector (name of the method) to perform.
-
performSelectorInBackgroundWithObject
Performs the given selector on the native AppDelegate, run it in the background- Parameters:
selector
- The selector (name of the method) to perform.object
- An object that was before returned from native code.
-