Platform.Init Method

Definition

Overloads

Init(Application)

Initialize Xamarin.Essentials with Android's application class.

Init(Activity, Bundle)

Initialize Xamarin.Essentials with Android's activity and bundle.

Init(Application)

Initialize Xamarin.Essentials with Android's application class.

public static void Init (Android.App.Application application);

Parameters

application
Application

Application to initialize with.

Init(Activity, Bundle)

Initialize Xamarin.Essentials with Android's activity and bundle.

public static void Init (Android.App.Activity activity, Android.OS.Bundle bundle);

Parameters

activity
Activity

Activity to use for initialization.

bundle
Bundle

Bundle of the activity.

Applies to