Share via


AppWidgetHost.DeleteAllHosts Method

Definition

Remove all records about all hosts for your package.

[Android.Runtime.Register("deleteAllHosts", "()V", "")]
public static void DeleteAllHosts ();
[<Android.Runtime.Register("deleteAllHosts", "()V", "")>]
static member DeleteAllHosts : unit -> unit
Attributes

Remarks

Remove all records about all hosts for your package. <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.deleteAllHosts().

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