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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classAn account an identity provider offers.static interfaceAnswers oneonShowAccountChooser(String, List, CefriumIdentityHandler.Request)call; only the first answer counts. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidThe chooser ofrequestis no longer needed (the page went away or gave up): dismiss it.booleanonShowAccountChooser(String relyingParty, List<CefriumIdentityHandler.Account> accounts, CefriumIdentityHandler.Request request) relyingParty(the site, for display) asks to sign in with one ofaccounts.
-
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 ofaccounts. Return true and answerrequestwhen the user acts; return false for the default dialog. -
onAccountChooserClosed
The chooser ofrequestis no longer needed (the page went away or gave up): dismiss it. Answeringrequesthas no effect now.
-