ReportSystemUsageRequest
class ReportSystemUsageRequest
| kotlin.Any | |
| ↳ | android.app.appsearch.ReportSystemUsageRequest |
A request to report usage of a document owned by another app from a system UI surface.
Usage reported in this way is measured separately from usage reported via android.app.appsearch.AppSearchSession#reportUsage.
See GlobalSearchSession.reportSystemUsage for a detailed description of usage reporting.
Summary
| Nested classes | |
|---|---|
|
Builder for |
|
| Public methods | |
|---|---|
| String |
Returns the database in which the document that was used resides. |
| String |
Returns the ID of document that was used. |
| String |
Returns the namespace of the document that was used. |
| String |
Returns the package name of the app which owns the document that was used. |
| Long |
Returns the timestamp in milliseconds of the usage report (the time at which the document was used). |
Public methods
getDatabaseName
fun getDatabaseName(): String
Returns the database in which the document that was used resides.
| Return | |
|---|---|
String |
This value cannot be null. |
getDocumentId
fun getDocumentId(): String
Returns the ID of document that was used.
| Return | |
|---|---|
String |
This value cannot be null. |
getNamespace
fun getNamespace(): String
Returns the namespace of the document that was used.
| Return | |
|---|---|
String |
This value cannot be null. |
getPackageName
fun getPackageName(): String
Returns the package name of the app which owns the document that was used.
| Return | |
|---|---|
String |
This value cannot be null. |
getUsageTimestampMillis
fun getUsageTimestampMillis(): Long
Returns the timestamp in milliseconds of the usage report (the time at which the document was used).
The value is in the System.currentTimeMillis time base.
Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.
| Return | |
|---|---|
Long |
Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z. |