Added in API level 37

LocationButtonProviderFactory


public class LocationButtonProviderFactory
extends Object

java.lang.Object
   ↳ android.app.permissionui.LocationButtonProviderFactory


A factory for creating LocationButtonProvider instances. This is the primary entry point for jetpack widget to interact with the Location Button APIs.

Summary

Public methods

static LocationButtonProvider create(Context context)

Creates a new instance of the LocationButtonProvider.

Inherited methods

Public methods

create

Added in API level 37
public static LocationButtonProvider create (Context context)

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.

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
LocationButtonProvider A new LocationButtonProvider instance that can be used to open location button sessions.
This value cannot be null.