English | Site Directory

Android - An Open Handset Alliance Project

com.google.android.gtalkservice.IGTalkService

com.google.android.gtalkservice.IGTalkService IInterface

IGTalkService interface definition file for GTalk service

Nested Classes
IGTalkService.Stub Local-side IPC implementation stub class. 
Known Indirect Subclasses

Summary

Public Methods

        IGTalkSession  createGTalkSession(String username, String password)
Creates a GTalk session to the server, using username and password for the login.
        void  dismissStatusbarNotifications(long providerId)
Dismisses statusbar notifications for an IM provider.
        void  enablePresenceStatusbarNotification(long providerId, boolean flag)
Turns on/off statusbar notifications for presence updates for a given IM provider.
        List  getActiveSessions()
Returns a list of IGTalkSession objects, or an empty list if there isn't any GTalk session.
        IGTalkSession  getDefaultSession()
Returns the default GTalk session, which can be used for third party data messaging.
        IGTalkSession  getSessionForUser(String username)
Returns the active GTalk session for the user.
Methods inherited from interface android.os.IInterface

Details

Public Methods

public IGTalkSession createGTalkSession(String username, String password)

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.

public IGTalkSession getSessionForUser(String username)

Returns the active GTalk session for the user. Returns null if there isn't a GTalk session for the user.
Build m5-rc15g - 14 May 2008 12:50