Share via


AVContentKeySession.MakeSecureTokenAsync(NSData) Method

Definition

Asynchronously creates a secure temporary key for the provided persistent key, and returns the result.

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

Parameters

persistableContentKeyData
NSData

The existing persistable content key data.

Returns

A task that represents the asynchronous MakeSecureToken operation. The value of the TResult parameter is of type System.Action<Foundation.NSData,Foundation.NSError>.

Attributes

Remarks

The MakeSecureTokenAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to