Provides entry points for adding configuration to the Maps API.
Public Method Summary
static void |
addInternalUsageAttributionId(Context
context, String
internalUsageAttributionId)
Adds a usage attribution ID to the initializer, which helps Google understand
which libraries and samples are helpful to developers, such as usage of a UI
framework support library.
|
Inherited Method Summary
Public Methods
public static void addInternalUsageAttributionId (Context context, String internalUsageAttributionId)
Adds a usage attribution ID to the initializer, which helps Google understand which libraries and samples are helpful to developers, such as usage of a UI framework support library. To opt out of sending the usage attribution ID, it is safe to delete this function call or replace the value with an empty string.
Note that this behavior is only supported by the MapsInitializer.Renderer.LATEST
renderer. You should only call this method if you have first called
MapsInitializer.initialize(Context, MapsInitializer.Renderer,
OnMapsSdkInitializedCallback)
with the latest renderer. The behavior is
undefined if invoking this method without calling
MapsInitializer.initialize(Context, MapsInitializer.Renderer,
OnMapsSdkInitializedCallback)
first or attempting to call this API on the
MapsInitializer.Renderer.LEGACY
renderer.
Parameters
context | Required context. Must not be null . |
---|---|
internalUsageAttributionId | The internal usage attribution ID to add. |