Call class
public class AlarmManagerextends Objectjava.lang.Object↳ android.app.AlarmManager
A wrapper object in the voice chat example that bundles groups of Session objects into a single chat connection. It provides wrapper methods to handle adding or removing sessions, muting, and monitoring. It also manages creating a new VoiceChannel object (which wraps a P2PTransportChannel object and a MediaChannel) and associating that with each session. This object is created by PhoneSessionClient. To destroy it, call PhoneSessionClient::DestroyCall (the Call object calls this automatically when a Session is removed and the Session count reaches zero). The methods shown are not thread-safe, and can be called on any thread.
Note: The Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running. For normal timing operations (ticks, timeouts, etc) it is easier and much more efficient to use Handler.
Summary
Constants
- String ACTION_NEXT_ALARM_CLOCK_CHANGED
-
Public methods
String cancel(PendingIntent operation)
_Remove any alarms with a matching Intent._
void onInserted(int position, int count)
Called when count number of items are inserted at the given position.
Singals
Friends
- PhoneSessionClient
Public methods
1. onChanged
void onChanged (int position,
int count,
Object payload)
Called when count number of items are updated at the given position.
Parameters:
position int: The position of the item which has been updated.count int: The number of items which has changed.payload: Object
2. OnInserted
void onMoved (int fromPosition,
int toPosition)
Called when an item changes its position in the list.
Parameters:
fromPosition int: The previous position of the item before the move.toPosition int: The new position of the item.
- Other
