MonoTouch.GameKit.GKLocalPlayer.AuthenticateHandler Property
Handler used to authenticate the user, triggers authentication when set.

Syntax

[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_6_0)]
[get: MonoTouch.Foundation.Export("authenticateHandler")]
[get: MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_6_0)]
[set: MonoTouch.Foundation.Export("setAuthenticateHandler:")]
[set: MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_6_0)]
public virtual Action<MonoTouch.UIKit.UIViewController, MonoTouch.Foundation.NSError> AuthenticateHandler { get; set; }

Value

This value can be null.

Remarks

This method will be called on demand, and the scenarios are either (a) the user has not authenticated this device, so you should present the view controller that is passed as an argument to this function; (b) the user is either authenticated or not authenticated, and you should use the value of the GKLocalPlayer.Authenticated to determine this.

This callback can be called multiple times, for example in response to the user logging off, and another one logging in in GameCenter. Use the state in the GKLocalPlayer to determine the

Requirements

Namespace: MonoTouch.GameKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0