Udostępnij za pośrednictwem


AppWidgetHost.DeleteHost Method

Definition

Remove all records about this host from the AppWidget manager.

[Android.Runtime.Register("deleteHost", "()V", "GetDeleteHostHandler")]
public virtual void DeleteHost ();
[<Android.Runtime.Register("deleteHost", "()V", "GetDeleteHostHandler")>]
abstract member DeleteHost : unit -> unit
override this.DeleteHost : unit -> unit
Attributes

Remarks

Remove all records about this host from the AppWidget manager. <ul> <li>Call this when initializing your database, as it might be because of a data wipe.</li> <li>Call this to have the AppWidget manager release all resources associated with your host. Any future calls about this host will cause the records to be re-allocated.</li> </ul>

Java documentation for android.appwidget.AppWidgetHost.deleteHost().

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