Language

DCDevice.GenerateTokenAsync Method

Definition

Generates an identification token for CurrentDevice and invokes a handler after the operation completes.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Foundation.NSData> GenerateTokenAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GenerateTokenAsync : unit -> System.Threading.Tasks.Task<Foundation.NSData>
override this.GenerateTokenAsync : unit -> System.Threading.Tasks.Task<Foundation.NSData>

Returns

A task that represents the asynchronous GenerateToken operation. The value of the TResult parameter is a DeviceCheck.DCDeviceGenerateTokenCompletionHandler.

Attributes

Remarks

The GenerateTokenAsync method can be used with C# async by returning control to the caller with a Task that represents the operation.

Applies to