contentProtection method

ContentProtection contentProtection({
  1. LcpAuthenticating? authentication,
})

Creates a ContentProtection instance which can be used with a Streamer to unlock LCP protected publications.

The provided authentication will be used to retrieve the user passphrase when opening an LCP license. The default implementation LcpDialogAuthentication presents a dialog to the user to enter their passphrase. This implementation is not provided in mno_lcp_dart since it makes no assumption about the context where it will be used

Implementation

ContentProtection contentProtection({LcpAuthenticating? authentication}) =>
    LcpContentProtection(this, authentication);