예제 #1
0
 @MarshalsPointer
 public static long toNative(List<UITextInputTextStyle> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSDictionary> array = new NSMutableArray<>();
   for (UITextInputTextStyle i : l) {
     array.add(i.getDictionary());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
예제 #2
0
 @MarshalsPointer
 public static long toNative(List<CKErrorUserInfoKey> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (CKErrorUserInfoKey o : l) {
     array.add(o.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
예제 #3
0
 @MarshalsPointer
 public static List<UITextInputTextStyle> 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<UITextInputTextStyle> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new UITextInputTextStyle(o.get(i)));
   }
   return list;
 }
예제 #4
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<CKErrorUserInfoKey> 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<CKErrorUserInfoKey> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(CKErrorUserInfoKey.valueOf(o.get(i)));
   }
   return list;
 }
예제 #5
0
 public UISegmentedControl(String... items) {
   super((SkipInit) null);
   initObject(init(NSArray.fromStrings(items)));
 }