retrieveLicense abstract method

Future<Try<LcpLicense, LcpException>?> retrieveLicense(
  1. FileSystemEntity file,
  2. LcpAuthenticating? authentication,
  3. bool allowUserInteraction,
  4. dynamic sender

Opens the LCP license of a protected publication, to access its DRM metadata and decipher its content.

@param authentication Used to retrieve the user passphrase if it is not already known. The request will be cancelled if no passphrase is found in the LCP passphrase storage and the provided authentication. @param allowUserInteraction Indicates whether the user can be prompted for their passphrase. @param sender Free object that can be used by reading apps to give some UX context when presenting dialogs with LcpAuthenticating.


Future<Try<LcpLicense, LcpException>?> retrieveLicense(
    FileSystemEntity file,
    LcpAuthenticating? authentication,
    bool allowUserInteraction,
    dynamic sender);