다음을 통해 공유


GKLocalPlayer.AuthenticateHandler 속성

정의

사용자를 인증하는 데 사용되는 처리기는 설정 시 인증을 트리거합니다.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Action<AppKit.NSViewController,Foundation.NSError> AuthenticateHandler { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("authenticateHandler", ObjCRuntime.ArgumentSemantic.Copy)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setAuthenticateHandler:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Action<AppKit.NSViewController,Foundation.NSError> AuthenticateHandler { [Foundation.Export("authenticateHandler", ObjCRuntime.ArgumentSemantic.Copy)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setAuthenticateHandler:", ObjCRuntime.ArgumentSemantic.Copy)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.AuthenticateHandler : Action<AppKit.NSViewController, Foundation.NSError> with get, set

속성 값

이 값은 null일 수 있습니다.

특성

설명

이 메서드는 요청 시 호출되며 시나리오는 (a) 사용자가 이 디바이스를 인증하지 않았기 때문에 이 함수에 인수로 전달되는 뷰 컨트롤러를 제공해야 합니다. (b) 사용자가 인증되었거나 인증되지 않은 경우 의 값을 Authenticated 사용하여 이를 확인해야 합니다.

예를 들어 사용자 로그오프에 대한 응답으로 이 콜백을 여러 번 호출하고 GameCenter에서 로그인하는 다른 콜백을 호출할 수 있습니다. GKLocalPlayer의 상태를 사용하여

적용 대상