Düzenle

Aracılığıyla paylaş


AVContentKeySession.MakeSecureTokenAsync(NSData) Method

Definition

Creates a secure temporary key for the provided persistent key, and passes the result to the provided handler.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Foundation.NSData> MakeSecureTokenAsync (Foundation.NSData persistableContentKeyData);
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