Partager via


ActivityManager.AddStartInfoTimestamp(Int32, Int64) Method

Definition

Adds an optional developer supplied timestamp to the calling apps most recent ApplicationStartInfo.

[Android.Runtime.Register("addStartInfoTimestamp", "(IJ)V", "GetAddStartInfoTimestamp_IJHandler", ApiSince=35)]
public virtual void AddStartInfoTimestamp (int key, long timestampNs);
[<Android.Runtime.Register("addStartInfoTimestamp", "(IJ)V", "GetAddStartInfoTimestamp_IJHandler", ApiSince=35)>]
abstract member AddStartInfoTimestamp : int * int64 -> unit
override this.AddStartInfoTimestamp : int * int64 -> unit

Parameters

key
Int32

Unique key for timestamp. Must be greater than ApplicationStartInfo#START_TIMESTAMP_RESERVED_RANGE_SYSTEM and less than or equal to ApplicationStartInfo#START_TIMESTAMP_RESERVED_RANGE_DEVELOPER. Will thow java.lang.IllegalArgumentException if not in range.

timestampNs
Int64

Clock monotonic time in nanoseconds of event to be recorded.

Attributes

Remarks

Adds an optional developer supplied timestamp to the calling apps most recent ApplicationStartInfo. This is in addition to system recorded timestamps.

Note: timestamps added after Activity#reportFullyDrawn is called will be discarded.

Note: will overwrite existing timestamp if called with same key.

Java documentation for android.app.ActivityManager.addStartInfoTimestamp(int, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to