Sdílet prostřednictvím


Icon.LoadDrawableAsync Method

Definition

Overloads

LoadDrawableAsync(Context, Message)

Invokes #loadDrawable(Context) on the given android.os.Handler Handler and then sends andThen to the same Handler when finished.

LoadDrawableAsync(Context, Icon+IOnDrawableLoadedListener, Handler)

Invokes #loadDrawable(Context) on a background thread and notifies the <code> OnDrawableLoadedListener#onDrawableLoaded listener</code> on the handler when finished.

LoadDrawableAsync(Context, Message)

Invokes #loadDrawable(Context) on the given android.os.Handler Handler and then sends andThen to the same Handler when finished.

[Android.Runtime.Register("loadDrawableAsync", "(Landroid/content/Context;Landroid/os/Message;)V", "", ApiSince=23)]
public void LoadDrawableAsync (Android.Content.Context context, Android.OS.Message andThen);
[<Android.Runtime.Register("loadDrawableAsync", "(Landroid/content/Context;Landroid/os/Message;)V", "", ApiSince=23)>]
member this.LoadDrawableAsync : Android.Content.Context * Android.OS.Message -> unit

Parameters

context
Context

android.content.Context Context in which to load the drawable; see #loadDrawable(Context)

andThen
Message

android.os.Message to send to its target once the drawable is available. The android.os.Message#obj obj property is populated with the Drawable.

Attributes

Remarks

Invokes #loadDrawable(Context) on the given android.os.Handler Handler and then sends andThen to the same Handler when finished.

Java documentation for android.graphics.drawable.Icon.loadDrawableAsync(android.content.Context, android.os.Message).

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

LoadDrawableAsync(Context, Icon+IOnDrawableLoadedListener, Handler)

Invokes #loadDrawable(Context) on a background thread and notifies the <code> OnDrawableLoadedListener#onDrawableLoaded listener</code> on the handler when finished.

[Android.Runtime.Register("loadDrawableAsync", "(Landroid/content/Context;Landroid/graphics/drawable/Icon$OnDrawableLoadedListener;Landroid/os/Handler;)V", "", ApiSince=23)]
public void LoadDrawableAsync (Android.Content.Context context, Android.Graphics.Drawables.Icon.IOnDrawableLoadedListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("loadDrawableAsync", "(Landroid/content/Context;Landroid/graphics/drawable/Icon$OnDrawableLoadedListener;Landroid/os/Handler;)V", "", ApiSince=23)>]
member this.LoadDrawableAsync : Android.Content.Context * Android.Graphics.Drawables.Icon.IOnDrawableLoadedListener * Android.OS.Handler -> unit

Parameters

context
Context

Context Context in which to load the drawable; see #loadDrawable(Context)

listener
Icon.IOnDrawableLoadedListener

to be OnDrawableLoadedListener#onDrawableLoaded notified when #loadDrawable(Context) finished

handler
Handler

Handler on which to notify the listener

Attributes

Remarks

Java documentation for android.graphics.drawable.Icon.loadDrawableAsync(android.content.Context, android.graphics.drawable.OnDrawableLoadedListener, android.os.Handler).

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