Package com.cefrium

Class CefContactsPickerDelegate

java.lang.Object
com.cefrium.CefContactsPickerDelegate
All Implemented Interfaces:
org.chromium.content_public.browser.ContactsPickerDelegate

public class CefContactsPickerDelegate extends Object implements org.chromium.content_public.browser.ContactsPickerDelegate
Contact Picker delegate for the embedding (navigator.contacts.select).

Rather than reuse Chrome's shared ContactsPickerDialog from components/browser_ui - which pulls in the full Chromium UI resource graph (custom views, ColorStateLists, themed attributes) that does not resolve cleanly inside an embedding AAR - this draws its own dialog with the platform AlertDialog and reads contacts through ContactsContract. Same architecture as Cefrium's device chooser: app-drawn UI, no Chromium widgets, no resource coupling that breaks on Chromium updates. Registered via ContactsPicker.setContactsPickerDelegate(...) at SDK init. The READ_CONTACTS runtime permission is already granted by the time this is called (the engine gates on it through ContactsDialogHost before reaching here).

  • Constructor Details

    • CefContactsPickerDelegate

      public CefContactsPickerDelegate()
  • Method Details

    • showContactsPicker

      public Object showContactsPicker(org.chromium.content_public.browser.WebContents webContents, org.chromium.content_public.browser.ContactsPickerListener listener, boolean allowMultiple, boolean includeNames, boolean includeEmails, boolean includeTel, boolean includeAddresses, boolean includeIcons, String formattedOrigin, org.chromium.content_public.browser.ContactsFetcher contactsFetcher)
      Specified by:
      showContactsPicker in interface org.chromium.content_public.browser.ContactsPickerDelegate
    • cancelContactsPicker

      public void cancelContactsPicker(Object picker)
      Specified by:
      cancelContactsPicker in interface org.chromium.content_public.browser.ContactsPickerDelegate