편집

다음을 통해 공유


AVContentKeySession.MakeSecureToken Method

Definition

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

[Foundation.Export("makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:")]
[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 void MakeSecureToken (Foundation.NSData persistableContentKeyData, Action<Foundation.NSData,Foundation.NSError> handler);
abstract member MakeSecureToken : Foundation.NSData * Action<Foundation.NSData, Foundation.NSError> -> unit
override this.MakeSecureToken : Foundation.NSData * Action<Foundation.NSData, Foundation.NSError> -> unit

Parameters

persistableContentKeyData
NSData

The existing persistable content key data.

handler
Action<NSData,NSError>

A handler that is called once the new toke in available.

Attributes

Applies to