Interface CefriumIdentityHandler


@CefriumExperimental public interface CefriumIdentityHandler
Shows the account chooser of a FedCM request (navigator.credentials.get({identity})), which "Sign in with" prompts such as Google's use. Without a handler the browser shows a default dialog on its activity (a surface browser's own, or the one given to CefriumBrowser.setDialogActivity(Activity)); with neither, the request fails.

Called on the main thread.

Experimental: it may still change before the 1.0 API freeze.

  • Method Details

    • onShowAccountChooser

      boolean onShowAccountChooser(String relyingParty, List<CefriumIdentityHandler.Account> accounts, CefriumIdentityHandler.Request request)
      relyingParty (the site, for display) asks to sign in with one of accounts. Return true and answer request when the user acts; return false for the default dialog.
    • onAccountChooserClosed

      default void onAccountChooserClosed(CefriumIdentityHandler.Request request)
      The chooser of request is no longer needed (the page went away or gave up): dismiss it. Answering request has no effect now.