Compartilhar via


ResourcesLoader.RemoveProvider(ResourcesProvider) Method

Definition

Removes a provider from the provider list.

[Android.Runtime.Register("removeProvider", "(Landroid/content/res/loader/ResourcesProvider;)V", "GetRemoveProvider_Landroid_content_res_loader_ResourcesProvider_Handler", ApiSince=30)]
public virtual void RemoveProvider (Android.Content.Res.Loader.ResourcesProvider resourcesProvider);
[<Android.Runtime.Register("removeProvider", "(Landroid/content/res/loader/ResourcesProvider;)V", "GetRemoveProvider_Landroid_content_res_loader_ResourcesProvider_Handler", ApiSince=30)>]
abstract member RemoveProvider : Android.Content.Res.Loader.ResourcesProvider -> unit
override this.RemoveProvider : Android.Content.Res.Loader.ResourcesProvider -> unit

Parameters

resourcesProvider
ResourcesProvider

the provider to remove

Attributes

Remarks

Removes a provider from the provider list. If the provider is not present in the provider list, the list will not be modified.

This should only be called from the UI thread to avoid lock contention when propagating provider changes.

Java documentation for android.content.res.loader.ResourcesLoader.removeProvider(android.content.res.loader.ResourcesProvider).

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