ActivityManager.AddStartInfoTimestamp(Int32, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
int: 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 IllegalArgumentException if not in range. Value is between ApplicationStartInfo.START_TIMESTAMP_RESERVED_RANGE_DEVELOPER_START and ApplicationStartInfo.START_TIMESTAMP_RESERVED_RANGE_DEVELOPER inclusive
- timestampNs
- Int64
long: 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: any timestamps added after Activity.reportFullyDrawn is called are discarded.
Note: will overwrite existing timestamp if called with same key.
Android reference for android.app.ActivityManager.addStartInfoTimestamp.
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.