setActivity

Set the current activity for biometric prompt support.

Call this after init when the current activity is already resumed to avoid a race condition where Application.ActivityLifecycleCallbacks.onActivityResumed won't fire until the next resume.

The activity must be a FragmentActivity for biometric authentication to work.

Parameters

activity

The current activity. If not a FragmentActivity, this call is a no-op.