/** * @since Available in iOS 8.0 and later. */ public boolean getPromisedItemResourceValue(NSObject.NSObjectPtr value, NSString key) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = getPromisedItemResourceValue(value, key, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. * @throws NSErrorException */ public NSObject getPromisedItemResourceValue(NSURLProperty key) throws NSErrorException { NSObject.NSObjectPtr ptr = new NSObject.NSObjectPtr(); NSError.NSErrorPtr err = new NSError.NSErrorPtr(); if (getPromisedItemResourceValue(ptr, key.value(), err)) { return ptr.get(); } if (err.get() != null) { throw new NSErrorException(err.get()); } return null; } /*<methods>*/
/** * @since Available in iOS 8.0 and later. */ public boolean getPromisedItemResourceValue(NSObject.NSObjectPtr value, NSString key) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = getPromisedItemResourceValue(value, key, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. */ public boolean getPromisedItemResourceValue(NSObject.NSObjectPtr value, NSString key) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = getPromisedItemResourceValue(value, key, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. * @throws NSErrorException */ public NSObject getPromisedItemResourceValue(NSURLProperty key) throws NSErrorException { NSObject.NSObjectPtr ptr = new NSObject.NSObjectPtr(); NSError.NSErrorPtr err = new NSError.NSErrorPtr(); if (getPromisedItemResourceValue(ptr, key.value(), err)) { return ptr.get(); } if (err.get() != null) { throw new NSErrorException(err.get()); } return null; } /*<methods>*/
/** * @since Available in iOS 8.0 and later. * @throws NSErrorException */ public NSObject getPromisedItemResourceValue(NSURLProperty key) throws NSErrorException { NSObject.NSObjectPtr ptr = new NSObject.NSObjectPtr(); NSError.NSErrorPtr err = new NSError.NSErrorPtr(); if (getPromisedItemResourceValue(ptr, key.value(), err)) { return ptr.get(); } if (err.get() != null) { throw new NSErrorException(err.get()); } return null; } /*<methods>*/