Tabnine Logo
ObjCClass.getByType
Code IndexAdd Tabnine to your IDE (free)

How to use
getByType
method
in
org.robovm.objc.ObjCClass

Best Java code snippets using org.robovm.objc.ObjCClass.getByType (Showing top 20 results out of 315)

origin: robovm/robovm

@SuppressWarnings("unchecked")
private static ObjCClass toObjCClass(Class<?>[] array, int index) {
  return array.length > index ? ObjCClass.getByType((Class<? extends ObjCObject>) array[index]) : null;
}

origin: robovm/robovm

private static ObjCClass getByNameNotLoaded(String objcClassName) {
  Class<? extends ObjCObject> cls = allNativeClasses.get(objcClassName);
  if (cls != null) {
    return getByType(cls);
  }
  cls = allNativeProtocolProxies.get(objcClassName);
  if (cls != null) {
    return getByType(cls);
  }
  cls = allCustomClasses.get(objcClassName);
  if (cls != null) {
    return getByType(cls);
  }
  return null;
}

origin: robovm/robovm

@SuppressWarnings("unchecked")
protected ObjCSuper getSuper() {
  if (zuper == null) {
    Class<? extends ObjCObject> javaClass = (Class<? extends ObjCObject>) getClass().getSuperclass();
    ObjCClass objCClass = ObjCClass.getByType(javaClass);
    while (objCClass.isCustom()) {
      javaClass = (Class<? extends ObjCObject>) javaClass.getSuperclass();
      objCClass = ObjCClass.getByType(javaClass);
    }
    zuper = new ObjCSuper(this, objCClass);
  }
  return zuper;
}
origin: robovm/robovm

  @MarshalsPointer
  public static long toNative(Class<? extends ObjCObject> o, long flags) {
    if (o == null) {
      return 0L;
    }
    ObjCClass c = ObjCClass.getByType(o);
    return c.getHandle();
  }
}
origin: robovm/robovm

protected static <T extends NSObject> T alloc(Class<T> c) {
  long h = NSObject.alloc(ObjCClass.getByType(c));
  return ObjCObject.toObjCObject(c, h, NSObject.FLAG_NO_RETAIN);
}
origin: robovm/robovm

public static ObjCClass getFromObject(ObjCObject id) {
  long handle = id.getHandle();
  ObjCClass c = null;
  if (handle != 0L) {
    long classPtr = ObjCRuntime.object_getClass(handle);
    c = ObjCObject.getPeerObject(classPtr);
  }
  if (c != null) {
    return c;
  }
  return getByType(id.getClass());
}

origin: robovm/robovm

public static void preparePrerollAds() { preparePrerollAds(ObjCClass.getByType(MPMoviePlayerController.class)); }
/*</methods>*/
origin: robovm/robovm

public static void prepareInterstitialAds() { prepareInterstitialAds(ObjCClass.getByType(UIViewController.class)); }
/*</methods>*/
origin: robovm/robovm

/*<ptr>*/public static class CIFilterPtr extends Ptr<CIFilter, CIFilterPtr> {}/*</ptr>*/
/*<bind>*/static { ObjCRuntime.bind(CIFilter.class); }/*</bind>*/
origin: robovm/robovm

public static NSValue create(@ByVal CLLocationCoordinate2D coordinate) { return create(ObjCClass.getByType(NSValue.class), coordinate); }
@Method(selector = "valueWithMKCoordinateSpan:")
origin: robovm/robovm

public static NSValue create(@ByVal CMTimeRange timeRange) { return create(ObjCClass.getByType(NSValue.class), timeRange); }
/**
origin: robovm/robovm

public static NSValue create(@ByVal CGSize size) { return create(ObjCClass.getByType(NSValue.class), size); }
@Method(selector = "valueWithCGRect:")
origin: robovm/robovm

public static NSValue create(@ByVal CGRect rect) { return create(ObjCClass.getByType(NSValue.class), rect); }
@Method(selector = "valueWithCGAffineTransform:")
origin: robovm/robovm

public static NSValue create(@ByVal CGAffineTransform transform) { return create(ObjCClass.getByType(NSValue.class), transform); }
@Method(selector = "valueWithUIEdgeInsets:")
origin: robovm/robovm

public static NSValue create(@ByVal CMTime time) { return create(ObjCClass.getByType(NSValue.class), time); }
/**
origin: robovm/robovm

public static NSValue create(@ByVal UIEdgeInsets insets) { return create(ObjCClass.getByType(NSValue.class), insets); }
/**
origin: robovm/robovm

public static NSValue create(@ByVal SCNMatrix4 v) { return create(ObjCClass.getByType(NSValue.class), v); }
/*</methods>*/
origin: robovm/robovm

public static NSValue create(@ByVal CATransform3D t) { return create(ObjCClass.getByType(NSValue.class), t); }
/*</methods>*/
origin: robovm/robovm

public static NSValue create(@ByVal CGPoint point) { return create(ObjCClass.getByType(NSValue.class), point); }
@Method(selector = "valueWithCGVector:")
origin: robovm/robovm

/**
 * 
 * @param data
 * @param options
 * @return
 * @since Available in iOS 7.0 and later.
 * @throws NSErrorException
 */
@WeaklyLinked
public NSAttributedString(NSData data, NSAttributedStringDocumentAttributes options) throws NSErrorException {
  super((SkipInit) null);
  long h = NSObject.alloc(ObjCClass.getByType(NSAttributedString.class));
  initObject(NSAttributedStringExtensions.init(ObjCObject.toObjCObject(NSAttributedString.class, h, NSObject.FLAG_NO_RETAIN), data, options, null));
}
/**
org.robovm.objcObjCClassgetByType

Popular methods of ObjCClass

  • getHandle
  • getName
  • getType
  • registerCustomClass
  • <init>
  • findCallbacks
  • getByNameNotLoaded
  • getCallbacks
  • getCustomClassName
  • getFromObject
  • getProtocols
  • isCustom
  • getProtocols,
  • isCustom,
  • isObjCProxy,
  • register,
  • toObjCClass

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now