Home | History | Annotate | Download | only in telecom

Lines Matching refs:Callback

38  * {@link RemoteConnection.Callback}.
45 * Callback base class for {@link RemoteConference}.
47 public abstract static class Callback {
137 private final Set<CallbackRecord<Callback>> mCallbackRecords = new CopyOnWriteArraySet<>();
167 for (CallbackRecord<Callback> record : mCallbackRecords) {
169 final Callback callback = record.getCallback();
173 callback.onDestroyed(conference);
192 for (CallbackRecord<Callback> record : mCallbackRecords) {
194 final Callback callback = record.getCallback();
198 callback.onStateChanged(conference, oldState, newState);
210 for (CallbackRecord<Callback> record : mCallbackRecords) {
212 final Callback callback = record.getCallback();
216 callback.onConnectionAdded(conference, connection);
228 for (CallbackRecord<Callback> record : mCallbackRecords) {
230 final Callback callback = record.getCallback();
234 callback.onConnectionRemoved(conference, connection);
245 for (CallbackRecord<Callback> record : mCallbackRecords) {
247 final Callback callback = record.getCallback();
251 callback.onConnectionCapabilitiesChanged(
263 for (CallbackRecord<Callback> record : mCallbackRecords) {
265 final Callback callback = record.getCallback();
269 callback.onConnectionPropertiesChanged(
281 for (CallbackRecord<Callback> record : mCallbackRecords) {
283 final Callback callback = record.getCallback();
287 callback.onConferenceableConnectionsChanged(
299 for (CallbackRecord<Callback> record : mCallbackRecords) {
301 final Callback callback = record.getCallback();
305 callback.onDisconnected(conference, disconnectCause);
338 for (CallbackRecord<Callback> record : mCallbackRecords) {
340 final Callback callback = record.getCallback();
344 callback.onExtrasChanged(conference, mExtras);
547 * Register a callback through which to receive state updates for this conference.
549 * @param callback The callback to notify of state changes.
551 public final void registerCallback(Callback callback) {
552 registerCallback(callback, new Handler());
556 * Registers a callback through which to receive state updates for this conference.
559 * @param callback The callback to notify of state changes.
562 public final void registerCallback(Callback callback, Handler handler) {
563 unregisterCallback(callback);
564 if (callback != null && handler != null) {
565 mCallbackRecords.add(new CallbackRecord(callback, handler));
570 * Unregisters a previously registered callback.
574 * @param callback The callback to unregister.
576 public final void unregisterCallback(Callback callback) {
577 if (callback != null) {
578 for (CallbackRecord<Callback> record : mCallbackRecords) {
579 if (record.getCallback() == callback) {