Udostępnij za pośrednictwem


ContentProvider.OnCallingPackageChanged Method

Definition

Called whenever the value of #getCallingPackage() changes, giving the provider an opportunity to invalidate any security related caching it may be performing.

[Android.Runtime.Register("onCallingPackageChanged", "()V", "GetOnCallingPackageChangedHandler", ApiSince=30)]
public virtual void OnCallingPackageChanged ();
[<Android.Runtime.Register("onCallingPackageChanged", "()V", "GetOnCallingPackageChangedHandler", ApiSince=30)>]
abstract member OnCallingPackageChanged : unit -> unit
override this.OnCallingPackageChanged : unit -> unit
Attributes

Remarks

Called whenever the value of #getCallingPackage() changes, giving the provider an opportunity to invalidate any security related caching it may be performing.

This typically happens when a ContentProvider makes a nested call back into itself when already processing a call from a remote process.

Java documentation for android.content.ContentProvider.onCallingPackageChanged().

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.

Applies to