UIApplication.OpenUrl 메서드

정의

오버로드

OpenUrl(NSUrl)

지정한 URL을 열고 스키마를 처리하기 위해 등록된 앱을 시작합니다.

OpenUrl(NSUrl, NSDictionary, Action<Boolean>)

지정한 URL을 열고 스키마를 처리하기 위해 등록된 앱을 시작합니다.

OpenUrl(NSUrl, UIApplicationOpenUrlOptions, Action<Boolean>)

지정한 URL을 열고 스키마를 처리하기 위해 등록된 앱을 시작합니다.

OpenUrl(NSUrl)

지정한 URL을 열고 스키마를 처리하기 위해 등록된 앱을 시작합니다.

[Foundation.Export("openURL:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Please use the overload instead.")]
public virtual bool OpenUrl (Foundation.NSUrl url);
abstract member OpenUrl : Foundation.NSUrl -> bool
override this.OpenUrl : Foundation.NSUrl -> bool

매개 변수

url
NSUrl

URL을 나타냅니다.

반환

true URL이 성공적으로 열려 있으면 입니다.

특성

설명

다른 앱이 URL 구성표를 처리하도록 등록된 경우 이 메서드를 호출하면 다른 애플리케이션이 시작되며, 이로 인해 현재 애플리케이션이 종료되거나 적어도 백그라운드로 전송될 수 있습니다.

이 멤버는 확장에서 사용할 수 없습니다.

추가 정보

  • <xref:UIKit.UIApplication.CanOpenUrl>
  • <xref:UIKit.UIApplicationDelegate.HandleOpenUrl>

적용 대상

OpenUrl(NSUrl, NSDictionary, Action<Boolean>)

지정한 URL을 열고 스키마를 처리하기 위해 등록된 앱을 시작합니다.

[Foundation.Export("openURL:options:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void OpenUrl (Foundation.NSUrl url, Foundation.NSDictionary options, Action<bool> completion);
abstract member OpenUrl : Foundation.NSUrl * Foundation.NSDictionary * Action<bool> -> unit
override this.OpenUrl : Foundation.NSUrl * Foundation.NSDictionary * Action<bool> -> unit

매개 변수

url
NSUrl

열 URL입니다.

options
NSDictionary

시작 옵션.

completion
Action<Boolean>

시작 후 비동기적으로 호출됩니다.

이 매개 변수는 null일 수 있습니다.

특성

설명

다른 앱이 URL 구성표를 처리하도록 등록된 경우 이 메서드를 호출하면 다른 애플리케이션이 시작되며, 이로 인해 현재 애플리케이션이 종료되거나 적어도 백그라운드로 전송될 수 있습니다.

이 멤버는 확장에서 사용할 수 없습니다.

추가 정보

  • <xref:UIKit.UIApplication.CanOpenUrl>
  • <xref:UIKit.UIApplicationDelegate.HandleOpenUrl>

적용 대상

OpenUrl(NSUrl, UIApplicationOpenUrlOptions, Action<Boolean>)

지정한 URL을 열고 스키마를 처리하기 위해 등록된 앱을 시작합니다.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public void OpenUrl (Foundation.NSUrl url, UIKit.UIApplicationOpenUrlOptions options, Action<bool> completion);
member this.OpenUrl : Foundation.NSUrl * UIKit.UIApplicationOpenUrlOptions * Action<bool> -> unit

매개 변수

url
NSUrl

열 URL입니다.

options
UIApplicationOpenUrlOptions

시작 옵션.

completion
Action<Boolean>

시작 후 비동기적으로 호출됩니다.

이 매개 변수는 null일 수 있습니다.

특성

적용 대상