Edytuj

Udostępnij za pośrednictwem


CPApplicationDelegate.OpenUrl Method

Definition

Overloads

OpenUrl(UIApplication, NSUrl, NSDictionary)

Indicates that the application should open the specified url with context from options.

OpenUrl(UIApplication, NSUrl, UIApplicationOpenUrlOptions)

Indicates that the application should open the specified url with context from options.

OpenUrl(UIApplication, NSUrl, String, NSObject)

Indicates that the application should open the specified url according to options.

OpenUrl(UIApplication, NSUrl, NSDictionary)

Indicates that the application should open the specified url with context from options.

[Foundation.Export("application:openURL:options:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool OpenUrl (UIKit.UIApplication app, Foundation.NSUrl url, Foundation.NSDictionary options);
abstract member OpenUrl : UIKit.UIApplication * Foundation.NSUrl * Foundation.NSDictionary -> bool
override this.OpenUrl : UIKit.UIApplication * Foundation.NSUrl * Foundation.NSDictionary -> bool

Parameters

url
NSUrl
options
NSDictionary

Returns

Attributes

Applies to

OpenUrl(UIApplication, NSUrl, UIApplicationOpenUrlOptions)

Indicates that the application should open the specified url with context from options.

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

Parameters

url
NSUrl

Returns

Attributes

Applies to

OpenUrl(UIApplication, NSUrl, String, NSObject)

Indicates that the application should open the specified url according to options.

[Foundation.Export("application:openURL:sourceApplication:annotation:")]
[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 virtual bool OpenUrl (UIKit.UIApplication application, Foundation.NSUrl url, string sourceApplication, Foundation.NSObject annotation);
abstract member OpenUrl : UIKit.UIApplication * Foundation.NSUrl * string * Foundation.NSObject -> bool
override this.OpenUrl : UIKit.UIApplication * Foundation.NSUrl * string * Foundation.NSObject -> bool

Parameters

application
UIApplication

Reference to the UIApplication that invoked this delegate method.

url
NSUrl
sourceApplication
String
annotation
NSObject

Returns

Attributes

Applies to