共用方式為


UIApplicationDelegate_Extensions.OpenUrl 方法

定義

多載

OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, NSDictionary)

表示應用程式應該使用 的內容 options 開啟指定的 url

OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, String, NSObject)

從指定的 URL 載入資源。

OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, NSDictionary)

表示應用程式應該使用 的內容 options 開啟指定的 url

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool OpenUrl (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication app, Foundation.NSUrl url, Foundation.NSDictionary options);
static member OpenUrl : UIKit.IUIApplicationDelegate * UIKit.UIApplication * Foundation.NSUrl * Foundation.NSDictionary -> bool

參數

This
IUIApplicationDelegate

這個擴充方法運作所在的 實例。

url
NSUrl
options
NSDictionary

傳回

屬性

適用於

OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, String, NSObject)

從指定的 URL 載入資源。

[ObjCRuntime.Obsoleted(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Override 'OpenUrl (UIApplication, NSUrl, NSDictionary)'. The later will be called if both are implemented.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool OpenUrl (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, Foundation.NSUrl url, string sourceApplication, Foundation.NSObject annotation);
static member OpenUrl : UIKit.IUIApplicationDelegate * UIKit.UIApplication * Foundation.NSUrl * string * Foundation.NSObject -> bool

參數

This
IUIApplicationDelegate

這個擴充方法運作所在的 實例。

application
UIApplication

此應用程式的參考 (SharedApplication) 。

url
NSUrl

呼叫 NSUrl 端應用程式所指定的 。

sourceApplication
String

呼叫應用程式的套件組合識別碼。

annotation
NSObject

呼叫端應用程式所傳遞的選擇性屬性清單資料。

傳回

屬性

適用於