LcpDialogAuthentication

An LcpAuthenticating implementation presenting a dialog to the user.

This authentication requires a view to anchor on. To use it, you'll need to call onParentViewAttachedToWindow every time it gets attached to a window and onParentViewDetachedFromWindow when it gets detached. You can typically achieve this with a View.OnAttachStateChangeListener. Without view to anchor on, retrievePassphrase will suspend until one is available.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Call this method every time the anchor view gets attached to the window.

Link copied to clipboard

Call this method every time the anchor view gets detached from the window.

Link copied to clipboard
open suspend override fun retrievePassphrase(license: LcpAuthenticating.AuthenticatedLicense, reason: LcpAuthenticating.AuthenticationReason, allowUserInteraction: Boolean): String?

Retrieves the passphrase used to decrypt the given license.