com.google.android.gtalkservice.IGTalkService
| com.google.android.gtalkservice.IGTalkService |
IInterface
|
IGTalkService
interface definition file for GTalk service
Nested Classes
Known Indirect Subclasses
Summary
Details
Public Methods
Creates a GTalk session to the server, using username and password for
the login. createGTalkSession starts a new GTalk session if there isn't one
for the username, connects to and logs into the GTalk server. If there is
already a running GTalk session for the username, then createsGTalkSession
just returns the running session.
Parameters
| username
| the username for the GTalk account. |
| password
| the password for the GTalk account
|
public
void
dismissStatusbarNotifications(long providerId)
Dismisses statusbar notifications for an IM provider.
public
void
enablePresenceStatusbarNotification(long providerId, boolean flag)
Turns on/off statusbar notifications for presence updates for a given IM provider.
public
List
getActiveSessions()
Returns a list of IGTalkSession objects, or an empty list if there isn't
any GTalk session.
public
IGTalkSession
getDefaultSession()
Returns the default GTalk session, which can be used for third party data
messaging. Returns null if there isn't a GTalk session. However, this
method should always return a valid IGTalkSession, because it gets auto
started if and when the GTalkService starts up.
Returns the active GTalk session for the user.
Returns null if there isn't a GTalk session for the user.