ReportSystemUsageRequest

public final class 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 reportUsageAsync.

See reportSystemUsageAsync for a detailed description of usage reporting.

Summary

Nested types

Builder for ReportSystemUsageRequest objects.

Public methods

@NonNull String

Returns the database in which the document that was used resides.

@NonNull String

Returns the ID of document that was used.

@NonNull String

Returns the namespace of the document that was used.

@NonNull 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

Added in 1.1.0-alpha04
public @NonNull String getDatabaseName()

Returns the database in which the document that was used resides.

getDocumentId

Added in 1.1.0-alpha04
public @NonNull String getDocumentId()

Returns the ID of document that was used.

getNamespace

Added in 1.1.0-alpha04
public @NonNull String getNamespace()

Returns the namespace of the document that was used.

getPackageName

Added in 1.1.0-alpha04
public @NonNull String getPackageName()

Returns the package name of the app which owns the document that was used.

getUsageTimestampMillis

Added in 1.1.0-alpha04
public long getUsageTimestampMillis()

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

The value is in the currentTimeMillis time base.