語言

MockPackageManager.GetInstantAppCookie 方法

定義

拋出 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於