Added in API level 37
LocationButtonProviderFactory
open class LocationButtonProviderFactory
| kotlin.Any | |
| ↳ | 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 | |
|---|---|
| open static LocationButtonProvider |
Creates a new instance of the |
Public methods
create
Added in API level 37
open static fun create(context: Context): LocationButtonProvider
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. |
| Return | |
|---|---|
LocationButtonProvider |
A new LocationButtonProvider instance that can be used to open location button sessions. This value cannot be null. |