PackageManager.UpdateInstantAppCookie(Byte[]) 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.
Updates the instant application cookie for the calling app.
[Android.Runtime.Register("updateInstantAppCookie", "([B)V", "GetUpdateInstantAppCookie_arrayBHandler", ApiSince=26)]
public abstract void UpdateInstantAppCookie (byte[]? cookie);
[<Android.Runtime.Register("updateInstantAppCookie", "([B)V", "GetUpdateInstantAppCookie_arrayBHandler", ApiSince=26)>]
abstract member UpdateInstantAppCookie : byte[] -> unit
Parameters
- cookie
- Byte[]
The cookie data.
- Attributes
Remarks
Updates the instant application cookie for the calling app. Non instant apps and apps that were instant but were upgraded to normal apps can still access this API. For instant apps this cookie is cached for some time after uninstall while for normal apps the cookie is deleted after the app is uninstalled. The cookie is always present while the app is installed. The cookie size is limited by #getInstantAppCookieMaxBytes()
. Passing null
or an empty array clears the cookie. </p>
Java documentation for android.content.pm.PackageManager.updateInstantAppCookie(byte[])
.
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.