Package io.cobrowse

Interface CobrowseIO.SessionRequestDelegate

All Superinterfaces:
CobrowseIO.Delegate, Session.Listener
Enclosing class:
CobrowseIO

@UiThread public static interface CobrowseIO.SessionRequestDelegate extends CobrowseIO.Delegate
Implement this interface on your delegate to override the default logic for handling incoming session requests. You should show your own UI for user consent, either activating or ending the session based on the users response.
  • Method Details

    • handleSessionRequest

      void handleSessionRequest(@NonNull android.app.Activity activity, @NonNull Session session)
      Called when a session has been requested. This gives your code an opportunity to show a session confirmation prompt.
      Parameters:
      activity - The currently active Activity
      session - The Session that is waiting to start