Esempio n. 1
0
 @MarshalsPointer
 public static SCNLightingModel toObject(Class<SCNLightingModel> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return SCNLightingModel.valueOf(o);
 }
Esempio n. 2
0
 @MarshalsPointer
 public static CAShapeFillRule toObject(Class<CAShapeFillRule> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CAShapeFillRule.valueOf(o);
 }
 @MarshalsPointer
 public static AVOutputSettingsPreset toObject(
     Class<AVOutputSettingsPreset> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVOutputSettingsPreset.valueOf(o);
 }
 @MarshalsPointer
 public static AVMediaCharacteristic toObject(
     Class<AVMediaCharacteristic> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVMediaCharacteristic.valueOf(o);
 }
Esempio n. 5
0
 @MarshalsPointer
 public static AVLayerVideoGravity toObject(
     Class<AVLayerVideoGravity> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVLayerVideoGravity.valueOf(o);
 }
 @MarshalsPointer
 public static NSURLProtectionSpaceProxyType toObject(
     Class<NSURLProtectionSpaceProxyType> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return NSURLProtectionSpaceProxyType.valueOf(o);
 }
 @MarshalsPointer
 public static AVMetadataKeyISOUserData toObject(
     Class<AVMetadataKeyISOUserData> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVMetadataKeyISOUserData.valueOf(o);
 }
Esempio n. 8
0
 @MarshalsPointer
 public static NSCocoaErrorUserInfoKey toObject(
     Class<NSCocoaErrorUserInfoKey> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return NSCocoaErrorUserInfoKey.valueOf(o);
 }
 @MarshalsPointer
 public static AVAudioSessionOrientation toObject(
     Class<AVAudioSessionOrientation> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVAudioSessionOrientation.valueOf(o);
 }
Esempio n. 10
0
 @MarshalsPointer
 public static NSStreamSOCKSProxyVersion toObject(
     Class<NSStreamSOCKSProxyVersion> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return NSStreamSOCKSProxyVersion.valueOf(o);
 }
 @MarshalsPointer
 public static HKDietaryQuantityTypeIdentifier toObject(
     Class<HKDietaryQuantityTypeIdentifier> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return HKDietaryQuantityTypeIdentifier.valueOf(o);
 }
Esempio n. 12
0
 @MarshalsPointer
 public static CIContextOptions toObject(Class<CIContextOptions> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CIContextOptions(o);
 }
Esempio n. 13
0
 @MarshalsPointer
 public static SCNSceneAttribute toObject(
     Class<SCNSceneAttribute> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return SCNSceneAttribute.valueOf(o);
 }
 @MarshalsPointer
 public static CNInstantMessageAddressPropertyKey toObject(
     Class<CNInstantMessageAddressPropertyKey> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CNInstantMessageAddressPropertyKey.valueOf(o);
 }
 @MarshalsPointer
 public static AVSampleRateConverterSettings toObject(
     Class<AVSampleRateConverterSettings> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new AVSampleRateConverterSettings(o);
 }
 @MarshalsPointer
 public static NSFileSystemAttributes toObject(
     Class<NSFileSystemAttributes> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new NSFileSystemAttributes(o);
 }
Esempio n. 17
0
 @MarshalsPointer
 public static AVVideoSettings toObject(Class<AVVideoSettings> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new AVVideoSettings(o);
 }
Esempio n. 18
0
 @MarshalsPointer
 public static UITextInputTextStyle toObject(
     Class<UITextInputTextStyle> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new UITextInputTextStyle(o);
 }
Esempio n. 19
0
 @MarshalsPointer
 public static NSNetServiceErrorUserInfo toObject(
     Class<NSNetServiceErrorUserInfo> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new NSNetServiceErrorUserInfo(o);
 }
Esempio n. 20
0
 @MarshalsPointer
 public static CIDetectorOptions toObject(
     Class<CIDetectorOptions> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CIDetectorOptions(o);
 }
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static NSTextCheckingTransitComponents toObject(
     Class<NSTextCheckingTransitComponents> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new NSTextCheckingTransitComponents(o);
 }
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static SKReceiptRefreshRequestOptions toObject(
     Class<SKReceiptRefreshRequestOptions> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new SKReceiptRefreshRequestOptions(o);
 }
 @MarshalsPointer
 public static List<AVSampleRateConverterSettings> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary> o =
       (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<AVSampleRateConverterSettings> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new AVSampleRateConverterSettings(o.get(i)));
   }
   return list;
 }
Esempio n. 24
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<SCNLightingModel> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<SCNLightingModel> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(SCNLightingModel.valueOf(o.get(i)));
   }
   return list;
 }
 @MarshalsPointer
 public static List<CBCentralManagerOptions> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary> o =
       (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<CBCentralManagerOptions> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new CBCentralManagerOptions(o.get(i)));
   }
   return list;
 }
Esempio n. 26
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<CVPixelFormatType> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSNumber> o = (NSArray<NSNumber>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CVPixelFormatType> list = new ArrayList<>();
   for (NSNumber n : o) {
     list.add(CVPixelFormatType.valueOf(n.longValue()));
   }
   return list;
 }
Esempio n. 27
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<CMVideoCodecType> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CMVideoCodecType> list = new ArrayList<>();
   for (NSString str : o) {
     list.add(CMVideoCodecType.valueOf(str));
   }
   return list;
 }
Esempio n. 28
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<SCNMatrix4> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSValue> o = (NSArray<NSValue>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<SCNMatrix4> list = new ArrayList<>();
   for (NSValue val : o) {
     list.add(val.SCNMatrix4Value());
   }
   return list;
 }
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<HKDietaryQuantityTypeIdentifier> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o =
       (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<HKDietaryQuantityTypeIdentifier> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(HKDietaryQuantityTypeIdentifier.valueOf(o.get(i)));
   }
   return list;
 }
Esempio n. 30
0
 @MarshalsPointer
 public static List<NSNetServiceErrorUserInfo> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary<NSString, NSObject>> o =
       (NSArray<NSDictionary<NSString, NSObject>>)
           NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<NSNetServiceErrorUserInfo> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new NSNetServiceErrorUserInfo(o.get(i)));
   }
   return list;
 }