Class ObjcNativeObject

java.lang.Object
com.jme3.system.ios.ObjcNativeObject
Direct Known Subclasses:
IosHarness

public class ObjcNativeObject extends Object
Java Object that represents a native iOS class. You can call methods and retrieve objects from the native object via this class.
  • 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

      public ObjcNativeObject performSelector(String selector)
      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

      public ObjcNativeObject performSelectorWithObject(String selector, ObjcNativeObject object)
      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

      public void performSelectorOnMainThread(String selector)
      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

      public void performSelectorOnMainThreadWithObject(String selector, ObjcNativeObject object)
      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

      public void performSelectorInBackground(String selector)
      Performs the given selector on the native AppDelegate, run it in the background.
      Parameters:
      selector - The selector (name of the method) to perform.
    • performSelectorInBackgroundWithObject

      public void performSelectorInBackgroundWithObject(String selector, ObjcNativeObject object)
      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.