MockPackageManager.GetInstantAppCookie 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
拋出 UnsupportedOperationException。 覆寫此方法即可在測試中取得即時應用 Cookie。
[Android.Runtime.Register("getInstantAppCookie", "()[B", "GetGetInstantAppCookieHandler", ApiSince=26)]
public override byte[]? GetInstantAppCookie();
[<Android.Runtime.Register("getInstantAppCookie", "()[B", "GetGetInstantAppCookieHandler", ApiSince=26)>]
override this.GetInstantAppCookie : unit -> byte[]
傳回
Byte[]
沒有任何價值回傳。 預設的模擬實作拋 UnsupportedOperationException出 ;覆寫此方法以提供測試結果。
- 屬性
備註
Java 文件 android.test.mock.MockPackageManager.getInstantAppCookie()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。