ReportSystemUsageRequest.Builder


class ReportSystemUsageRequest.Builder


Builder for ReportSystemUsageRequest objects.

Summary

Public constructors

Builder(
    packageName: String,
    databaseName: String,
    namespace: String,
    documentId: String
)

Creates a ReportSystemUsageRequest.Builder instance.

Public functions

ReportSystemUsageRequest

Builds a new ReportSystemUsageRequest.

ReportSystemUsageRequest.Builder
setUsageTimestampMillis(usageTimestampMillis: Long)

Sets the timestamp in milliseconds of the usage report (the time at which the document was used).

Public constructors

Builder

Added in 1.1.0-alpha06
Builder(
    packageName: String,
    databaseName: String,
    namespace: String,
    documentId: String
)

Creates a ReportSystemUsageRequest.Builder instance.

Parameters
packageName: String

The package name of the app which owns the document that was used (such as from getPackageName).

databaseName: String

The database in which the document that was used resides (such as from getDatabaseName).

namespace: String

The namespace of the document that was used (such as from getNamespace.

documentId: String

The ID of document that was used (such as from getId.

Public functions

setUsageTimestampMillis

Added in 1.1.0-alpha06
fun setUsageTimestampMillis(usageTimestampMillis: Long): ReportSystemUsageRequest.Builder

Sets the timestamp in milliseconds of the usage report (the time at which the document was used).

The value is in the currentTimeMillis time base.

If unset, this defaults to the current timestamp at the time that the ReportSystemUsageRequest is constructed.