Platform.Init Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Android.App.Application
Application to initialize with.
Applies to
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
- Android.App.Activity
Activity to use for initialization.
- bundle
- Android.OS.Bundle
Bundle of the activity.