Sdílet prostřednictvím


ResourcesLoader.AddProvider(ResourcesProvider) Method

Definition

Appends a provider to the end of the provider list.

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

Parameters

resourcesProvider
ResourcesProvider

the provider to add

Attributes

Remarks

Appends a provider to the end of the provider list. If the provider is already present in the loader 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.addProvider(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