Condividi tramite


GKLocalPlayer.AuthenticateHandler Proprietà

Definizione

Gestore usato per autenticare l'utente, attiva l'autenticazione quando impostata.

[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

Valore della proprietà

Il valore può essere null.

Attributi

Commenti

Questo metodo verrà chiamato su richiesta e gli scenari sono (a) che l'utente non ha autenticato questo dispositivo, quindi è necessario presentare il controller di visualizzazione passato come argomento a questa funzione; (b) l'utente è autenticato o non autenticato e è consigliabile usare il valore di Authenticated per determinare questo.

Questo callback può essere chiamato più volte, ad esempio in risposta alla disconnessione dell'utente e un altro accesso in GameCenter. Usare lo stato in GKLocalPlayer per determinare l'oggetto

Si applica a