public static final class LogContract.Session extends java.lang.Object implements android.provider.BaseColumns, LogContract.SessionColumns
| Modifier and Type | Class and Description |
|---|---|
static class |
LogContract.Session.Content |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_CONTENT_DIRECTORY
The directory twig for session from given application.
|
static java.lang.String |
CONTENT_ITEM_TYPE
The MIME type of a
CONTENT_URI subdirectory of a single log session. |
static java.lang.String |
CONTENT_TYPE
The MIME type of
CONTENT_URI providing a directory of sessions. |
static android.net.Uri |
CONTENT_URI
The content:// style URI for log session table.
|
static java.lang.String |
KEY_CONTENT_DIRECTORY
The directory twig for sessions with given key.
|
static java.lang.String |
SESSION_CONTENT_DIRECTORY
The directory twig for sessions.
|
APPLICATION_ID, CREATED_AT, DESCRIPTION, KEY, MARK, NAME, NUMBER| Modifier and Type | Method and Description |
|---|---|
static android.net.Uri |
createSessionsUri(long applicationId)
Returns the
Uri to sessions from given application. |
static android.net.Uri |
createUri(long sessionId)
Returns the
Uri to session with given id. |
static android.net.Uri |
createUri(java.lang.String key,
int number)
Returns the
Uri to session with given key and number. |
public static final java.lang.String SESSION_CONTENT_DIRECTORY
/session/key/[MY_KEY] returns all sessions with given key,/session/key/[MY_KEY]/[SESSION_NUMBER] returns the session with given key
and number. Number is not the session id. Numbers are incremented from 1 for each key
independently.
Use /session/[ID] if session id required./session/key/[MY_KEY]/[SESSION_NUMBER]/Log.CONTENT_DIRECTORY returns the log
entries from the session abovepublic static final java.lang.String KEY_CONTENT_DIRECTORY
/session/key/[MY_KEY] returns all sessions with given key,/session/key/[MY_KEY]/[SESSION_NUMBER] returns the session with given key
and number. Number is not the session id. Numbers are incremented from 1 for each key
independently.
Use /session/[ID] if session id required./session/key/[MY_KEY]/[SESSION_NUMBER]/Log.CONTENT_DIRECTORY returns the log
entries from the session abovepublic static final java.lang.String APPLICATION_CONTENT_DIRECTORY
public static final android.net.Uri CONTENT_URI
public static final java.lang.String CONTENT_TYPE
CONTENT_URI providing a directory of sessions.public static final java.lang.String CONTENT_ITEM_TYPE
CONTENT_URI subdirectory of a single log session.public static android.net.Uri createUri(long sessionId)
Uri to session with given id.sessionId - the session id.Uri that can be used to read session log entries.public static android.net.Uri createUri(java.lang.String key,
int number)
Uri to session with given key and number.key - the session key.number - the session number. Numbers are incremented automatically for each key
starting from 1 when creating new session.Uri that can be used to read session.public static android.net.Uri createSessionsUri(long applicationId)
Uri to sessions from given application.applicationId - the application id.Uri that can be used to read log sessions.