LocationButtonProviderFactory.Create(Context) 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.
Creates a new instance of the LocationButtonProvider.
[Android.Runtime.Register("create", "(Landroid/content/Context;)Landroid/app/permissionui/LocationButtonProvider;", "", ApiSince=37)]
public static Android.App.PermissionUI.ILocationButtonProvider Create(Android.Content.Context context);
[<Android.Runtime.Register("create", "(Landroid/content/Context;)Landroid/app/permissionui/LocationButtonProvider;", "", ApiSince=37)>]
static member Create : Android.Content.Context -> Android.App.PermissionUI.ILocationButtonProvider
Parameters
- context
- Context
The Context of the calling application. This is used to access system services and resources required by the Location Button. This value cannot be null.
Returns
A new LocationButtonProvider instance that can be used to open location button sessions. This value cannot be null.
- Attributes
Remarks
Creates a new instance of the LocationButtonProvider.
This method should be called to obtain a provider object, which can then be used to create and manage Location Button sessions.
Android reference for android.app.permissionui.LocationButtonProviderFactory.create.
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.