Class AVContentKeySession

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class AVContentKeySession
extends NSObject
Since:
Available in iOS 10.3 and later.
  • Constructor Details

    • AVContentKeySession

      protected AVContentKeySession()
    • AVContentKeySession

      protected AVContentKeySession​(NSObject.Handle h, long handle)
    • AVContentKeySession

      protected AVContentKeySession​(NSObject.SkipInit skipInit)
    • AVContentKeySession

      public AVContentKeySession​(String keySystem)
      Since:
      Available in iOS 11.0 and later.
    • AVContentKeySession

      public AVContentKeySession​(String keySystem, NSURL storageURL)
  • Method Details

    • getDelegate

      public AVContentKeySessionDelegate getDelegate()
    • getDelegateQueue

      public DispatchQueue getDelegateQueue()
    • getStorageURL

      public NSURL getStorageURL()
    • getKeySystem

      public String getKeySystem()
    • getContentProtectionSessionIdentifier

      public NSData getContentProtectionSessionIdentifier()
    • getContentKeyRecipients

      public NSArray<?> getContentKeyRecipients()
    • setDelegate

      public void setDelegate​(AVContentKeySessionDelegate delegate, DispatchQueue delegateQueue)
    • expire

      public void expire()
    • processContentKeyRequestWithIdentifier

      public void processContentKeyRequestWithIdentifier​(NSObject identifier, NSData initializationData, NSDictionary<NSString,​?> options)
    • renewExpiringResponseDataForContentKeyRequest

      public void renewExpiringResponseDataForContentKeyRequest​(AVContentKeyRequest contentKeyRequest)
    • makeSecureTokenForExpirationDateOfPersistableContentKey

      public void makeSecureTokenForExpirationDateOfPersistableContentKey​(NSData persistableContentKeyData, VoidBlock2<NSData,​NSError> handler)
      Since:
      Available in iOS 11.0 and later.
    • invalidatePersistableContentKey

      public void invalidatePersistableContentKey​(NSData persistableContentKeyData, NSDictionary<NSString,​?> options, VoidBlock2<NSData,​NSError> handler)
      Since:
      Available in iOS 12.2 and later.
    • invalidateAllPersistableContentKeys

      public void invalidateAllPersistableContentKeys​(NSData appIdentifier, NSDictionary<NSString,​?> options, VoidBlock2<NSData,​NSError> handler)
      Since:
      Available in iOS 12.2 and later.
    • create

      protected static long create​(String keySystem)
      Since:
      Available in iOS 11.0 and later.
    • create

      protected static long create​(String keySystem, NSURL storageURL)
    • addContentKeyRecipient

      public void addContentKeyRecipient​(AVContentKeyRecipient recipient)
    • removeContentKeyRecipient

      public void removeContentKeyRecipient​(AVContentKeyRecipient recipient)
    • pendingExpiredSessionReportsWithAppIdentifier

      public static NSArray<NSData> pendingExpiredSessionReportsWithAppIdentifier​(NSData appIdentifier, NSURL storageURL)
    • removePendingExpiredSessionReports

      public static void removePendingExpiredSessionReports​(NSArray<NSData> expiredSessionReports, NSData appIdentifier, NSURL storageURL)