@Override public boolean openURI (String URI) { NSURL url = new NSURL(URI); if (uiApp.canOpenURL(url)) { uiApp.openURL(url); return true; } return false; } }
public java.net.URL toURL() throws java.net.MalformedURLException { return new java.net.URL(getAbsoluteString()); } public java.net.URI toURI() throws java.net.URISyntaxException {
/** * @since Available in iOS 4.0 and later. */ public boolean checkResourceIsReachable() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = checkResourceIsReachable(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL) { super((SkipInit) null); initObject(init(data, baseURL)); } /**
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL, boolean absoluteURL) { super((SkipInit) null); initObject(absoluteURL ? initAbsoluteURL(data, baseURL) : init(data, baseURL)); }
/** * @since Available in iOS 4.0 and later. * @throws NSErrorException */ public NSObject getResourceValue(NSURLFileSystemProperty property) throws NSErrorException { return getResourceValue(property.value()); } /**
/** * @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 4.0 and later. */ public static NSData createBookmarkData(NSURL bookmarkFileURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSData result = createBookmarkData(bookmarkFileURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public NSURLProperties getResourceValues(@org.robovm.rt.bro.annotation.Marshaler(NSURLProperty.AsListMarshaler.class) List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. */ public NSURLProperties getPromisedItemResourceValues(@org.robovm.rt.bro.annotation.Marshaler(NSURLProperty.AsListMarshaler.class) List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getPromisedItemResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public NSURL(String URLString) { super((SkipInit) null); initObject(init(URLString)); } public NSURL(String URLString, NSURL baseURL) { super((SkipInit) null); initObject(init(URLString, baseURL)); }
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL, boolean absoluteURL) { super((SkipInit) null); initObject(absoluteURL ? initAbsoluteURL(data, baseURL) : init(data, baseURL)); }
/** * @since Available in iOS 4.0 and later. * @throws NSErrorException */ public NSObject getResourceValue(NSURLUbiquitousItemProperty property) throws NSErrorException { return getResourceValue(property.value()); } /**
/** * @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 4.0 and later. */ public static NSData createBookmarkData(NSURL bookmarkFileURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSData result = createBookmarkData(bookmarkFileURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public NSURLProperties getResourceValues(List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. */ public NSURLProperties getPromisedItemResourceValues(List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getPromisedItemResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public NSURL(String URLString, NSURL baseURL) { super((SkipInit) null); initObject(init(URLString, baseURL)); } /**
@Override public boolean openURI (String URI) { NSURL url = new NSURL(URI); if (uiApp.canOpenURL(url)) { uiApp.openURL(url); return true; } return false; } }
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL, boolean absoluteURL) { super((SkipInit) null); initObject(absoluteURL ? initAbsoluteURL(data, baseURL) : init(data, baseURL)); }