Interface Broadcaster.TalkbackObserver

Enclosing class:
Broadcaster

public static interface Broadcaster.TalkbackObserver
An Observer interface that should be passed to setTalkbackObserver(observer) to receive callbacks about talkback stream state changes. All callbacks are done on the main UI thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onTalkbackStateChanged(TalkbackState state, int id, String caller, String request)
    Called whenever the internal state for a talkback stream changes.
  • Method Details

    • onTalkbackStateChanged

      void onTalkbackStateChanged(TalkbackState state, int id, String caller, String request)
      Called whenever the internal state for a talkback stream changes. See the documentation for TalkbackState to know what each state implies and how each state should be handled by your app.
      Parameters:
      state - Any of the values in TalkbackState.
      id - An integer id identifying the talkback stream source this callback relates to. This should be passed back into methods such as acceptTalkback(id).
      caller - The sender of the talkback request
      request - A message included in the talkback request