init
TypeScriptstatic initKeySystem(keySystem: AVContentKeySystem): AVContentKeySessionSwift declarationconvenience init(keySystem: AVContentKeySystem)class · iOS 10.3+ · SDK 27.1
class AVContentKeySessionstatic initKeySystem(keySystem: AVContentKeySystem): AVContentKeySessionSwift declarationconvenience init(keySystem: AVContentKeySystem)static initKeySystemStorageDirectoryAt(keySystem: AVContentKeySystem, storageURL: string): AVContentKeySessionSwift declarationconvenience init(keySystem: AVContentKeySystem, storageDirectoryAt storageURL: URL)static pendingExpiredSessionReports(appIdentifier: ArrayBuffer, storageURL: string): Array<ArrayBuffer>Swift declarationclass func pendingExpiredSessionReports(withAppIdentifier appIdentifier: Data, storageDirectoryAt storageURL: URL) -> [Data]static removePendingExpiredSessionReports(expiredSessionReports: Array<ArrayBuffer>, appIdentifier: ArrayBuffer, storageURL: string): voidSwift declarationclass func removePendingExpiredSessionReports(_ expiredSessionReports: [Data], withAppIdentifier appIdentifier: Data, storageDirectoryAt storageURL: URL)addContentKeyRecipient(recipient: SDKHandle): voidSwift declarationfunc addContentKeyRecipient(_ recipient: any AVContentKeyRecipient)expire(): voidSwift declarationfunc expire()invalidateAllPersistableContentKeys(appIdentifier: ArrayBuffer, options: (NativeMap<AVContentKeySessionServerPlaybackContextOption, unknown>) | null, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc invalidateAllPersistableContentKeys(forApp appIdentifier: Data, options: [AVContentKeySessionServerPlaybackContextOption : Any]? = nil) async throws -> DatainvalidatePersistableContentKey(persistableContentKeyData: ArrayBuffer, options: (NativeMap<AVContentKeySessionServerPlaybackContextOption, unknown>) | null, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc invalidatePersistableContentKey(_ persistableContentKeyData: Data, options: [AVContentKeySessionServerPlaybackContextOption : Any]? = nil) async throws -> DatamakeSecureTokenForExpirationDate(persistableContentKeyData: ArrayBuffer, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc makeSecureTokenForExpirationDate(ofPersistableContentKey persistableContentKeyData: Data) async throws -> DataprocessContentKeyRequest(identifier?: (SDKHandle) | null, initializationData?: (ArrayBuffer) | null, options?: (Record<string, SDKHandle>) | null): voidSwift declarationfunc processContentKeyRequest(withIdentifier identifier: (any Sendable)?, initializationData: Data?, options: [String : any Sendable]? = nil)removeContentKeyRecipient(recipient: SDKHandle): voidSwift declarationfunc removeContentKeyRecipient(_ recipient: any AVContentKeyRecipient)renewExpiringResponseData(contentKeyRequest: AVContentKeyRequest): voidSwift declarationfunc renewExpiringResponseData(for contentKeyRequest: AVContentKeyRequest)setDelegate(delegate?: (Implements<AVContentKeySessionDelegate> | SDKHandle) | null, delegateQueue?: (_Dispatch_DispatchQueue) | null): voidSwift declarationfunc setDelegate(_ delegate: (any AVContentKeySessionDelegate)?, queue delegateQueue: dispatch_queue_t?)get contentKeyRecipients(): Array<SDKHandle>Swift declarationvar contentKeyRecipients: [any AVContentKeyRecipient] { get }get contentProtectionSessionIdentifier(): (ArrayBuffer) | nullSwift declarationvar contentProtectionSessionIdentifier: Data? { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any AVContentKeySessionDelegate)? { get }get delegateQueue(): (_Dispatch_DispatchQueue) | nullSwift declarationvar delegateQueue: dispatch_queue_t? { get }get keySystem(): AVContentKeySystemSwift declarationvar keySystem: AVContentKeySystem { get }get storageURL(): (string) | nullSwift declarationvar storageURL: URL? { get }get supportsAdvisoryKeys(): booleanSwift declarationvar supportsAdvisoryKeys: Bool { get set }set supportsAdvisoryKeys(value: boolean)Swift declarationvar supportsAdvisoryKeys: Bool { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AVContentKeySession.init()
inherited init: cannot prove legal (class declares 3 custom initializers)