/** * @since Available in iOS 2.0 and later. * @deprecated Deprecated in iOS 9.0. */ @Deprecated public boolean save() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = save(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 7.0 and later. * @deprecated Deprecated in iOS 9.0. */ @Deprecated public static @Pointer long initWithFileURL(NSAttributedString thiz, NSURL url, NSAttributedStringDocumentAttributes options, NSDictionary.NSDictionaryPtr dict) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); long result = initWithFileURL(thiz, url, options, dict, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public CFURLEnumeratorResult getNextURL(CFURL.CFURLPtr url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); CFURLEnumeratorResult result = getNextURL(url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 2.0 and later. */ public boolean removeItemAtPath(String path) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = removeItemAtPath(path, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 9.0 and later. */ public NSObject decodeTopLevelObject(NSSet<?> classes, String key) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSObject result = decodeTopLevelObject(classes, key, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 7.0 and later. */ public boolean addReadingListItem(NSURL URL, String title, String previewText) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = addReadingListItem(URL, title, previewText, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public static CFURL createFileReferenceURL(CFAllocator allocator, CFURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); CFURL result = createFileReferenceURL(allocator, url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public static CFURL createFilePathURL(CFAllocator allocator, CFURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); CFURL result = createFilePathURL(allocator, url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ protected static NSPropertyList getPropertyListFromStream(NSInputStream stream, NSPropertyListMutabilityOptions opt, MachineSizedUIntPtr format) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSPropertyList result = getPropertyListFromStream(stream, opt, format, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public boolean load(NSURL fileURL, AVMusicSequenceLoadOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = load(fileURL, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } @Method(selector = "loadFromURL:options:error:")
public boolean enumerateContacts(CNContactFetchRequest fetchRequest, VoidBlock2<CNContact, BooleanPtr> block) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = enumerateContacts(fetchRequest, ptr, block); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; }
/** * @since Available in iOS 5.0 and later. */ public boolean setMode(AVAudioSessionMode mode) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setMode(mode, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean overrideOutputAudioPort(AVAudioSessionPortOverride portOverride) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = overrideOutputAudioPort(portOverride, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 2.0 and later. */ public static List<CFProxy> getProxies(String proxyAutoConfigurationScript, NSURL targetURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); List<CFProxy> result = getProxies(proxyAutoConfigurationScript, targetURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public static NSFileHandle createForWriting(NSURL url) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSFileHandle result = createForWriting(url, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public AVMIDIPlayer(NSData data, NSURL bankURL) throws NSErrorException { super((SkipInit) null); NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); long handle = init(data, bankURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } initObject(handle); } /*</constructors>*/
/** * @since Available in iOS 7.0 and later. */ public static NSData getData(NSAttributedString thiz, @ByVal NSRange range, NSAttributedStringDocumentAttributes dict) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSData result = getData(thiz, range, dict, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean setCategory(AVAudioSessionCategory category, AVAudioSessionCategoryOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setCategory(category, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public NSRegularExpression(String pattern, NSRegularExpressionOptions options) throws NSErrorException { super((SkipInit) null); NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); long handle = init(pattern, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } initObject(handle); } public NSRegularExpression(NSCoder aDecoder) { super((SkipInit) null); initObject(init(aDecoder)); }
public static GLKTextureInfo loadCubeMap(String path, GLKTextureLoaderOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); GLKTextureInfo result = loadCubeMap(path, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } @Method(selector = "cubeMapWithContentsOfFile:options:error:")