public class Spark
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Spark.LogLevel
The enumeration of log message level
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APP_NAME |
static java.lang.String |
APP_VERSION |
| Constructor and Description |
|---|
Spark(android.app.Application application,
Authenticator authenticator)
Constructs a new Spark object with an
Authenticator and Application |
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
getAuthenticator() |
java.lang.String |
getVersion()
Get current SDK version
|
MembershipClient |
memberships()
Memberships represent a person's relationships to rooms.
|
MessageClient |
messages()
Messages are how we communicate in a room.
|
PersonClient |
people()
People are registered users of Cisco Spark.
|
Phone |
phone()
Phone can be used to make audio and video calls on Cisco Spark. |
RoomClient |
rooms()
Rooms are virtual meeting places in Cisco Spark where people post messages and collaborate to get work done.
|
void |
runInBackground(boolean background)
Invoke this method when the application switches between background and foreground.
|
void |
setLogLevel(Spark.LogLevel logLevel)
Set the log level of the logging.
|
TeamMembershipClient |
teamMembershipClient()
Team Memberships represent a person's relationships to teams.
|
TeamClient |
teams()
Teams are groups of people with a set of rooms that are visible to all members of that team.
|
WebhookClient |
webhooks()
Webhooks allow the application to be notified via HTTP (or HTTPS?) when a specific event occurs in Cisco Spark, e.g.
|
public static final java.lang.String APP_NAME
public static final java.lang.String APP_VERSION
public Spark(android.app.Application application,
Authenticator authenticator)
Authenticator and Applicationapplication - The android applicationauthenticator - The authentication strategy for this SDKpublic java.lang.String getVersion()
public void runInBackground(boolean background)
background - application run in background or not.public Authenticator getAuthenticator()
Authenticator object from the application when constructing this Spark object. It can be used to check and modify authentication state.public Phone phone()
Phone can be used to make audio and video calls on Cisco Spark.Phone represents a calling device in Cisco Spark Android SDK.public MessageClient messages()
MessageClient is uesd to manage the messages on behalf of the authenticated user.RoomClient,
MembershipClientpublic PersonClient people()
PersonClient is used to find a person on behalf of the authenticated user.MembershipClient,
MessageClientpublic MembershipClient memberships()
MembershipClient is used to manage the authenticated user's relationship to rooms.RoomClient,
MessageClientpublic TeamClient teams()
TeamClient is used to create and manage the teams on behalf of the authenticated user.TeamMembershipClient,
MembershipClientpublic TeamMembershipClient teamMembershipClient()
TeamMembershipClient is used to create and manage the team membership on behalf of the authenticated user.TeamClient,
RoomClientpublic WebhookClient webhooks()
WebhookClient is used to create and manage the webhooks for specific events.public RoomClient rooms()
RoomClient is used to manage the rooms on behalf of the authenticated user.MembershipClient,
MessageClientpublic void setLogLevel(Spark.LogLevel logLevel)
logLevel - log message level