ActivityManager.AddStartInfoTimestamp(Int32, Int64) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為呼叫最近的 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
參數
- key
- Int32
時間戳記的獨特金鑰。 必須大於ApplicationStartInfo#START_TIMESTAMP_RESERVED_RANGE_SYSTEM且小於或大於。ApplicationStartInfo#START_TIMESTAMP_RESERVED_RANGE_DEVELOPER
如果不在射程內,我會用。java.lang.IllegalArgumentException
- timestampNs
- Int64
將單調時間以奈秒計時,記錄待記錄事件。
- 屬性
備註
為呼叫應用程式最新的 ApplicationStartInfo 新增開發者提供的可選時間戳記。 這是系統記錄的時間戳之外的額外配置。 注意:在 Activity.reportFullyDrawn 呼叫之後新增的時間戳記都會被丟棄。
注意:若使用相同鍵數,將覆蓋現有時間戳。
Android 參考資料。android.app.ActivityManager.addStartInfoTimestamp
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。