MapsApiSettings
Stay organized with collections
Save and categorize content based on your preferences.
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
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
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.
Parameters
context |
Required context. Must not be null . |
internalUsageAttributionId |
The internal usage attribution ID to add.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["public final class **MapsApiSettings** extends Object \nProvides entry points for adding configuration to the Maps API. \n\nPublic Method Summary\n\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static void | [addInternalUsageAttributionId](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/MapsApiSettings#addInternalUsageAttributionId(android.content.Context,%20java.lang.String))(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. |\n\nInherited Method Summary \nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods \n\npublic static void\n**addInternalUsageAttributionId**\n(Context context, String internalUsageAttributionId) \nAdds a usage attribution ID to the initializer, which helps Google understand which libraries\nand samples are helpful to developers, such as usage of a UI framework support library. To opt\nout of sending the usage attribution ID, it is safe to delete this function call or replace the\nvalue with an empty string. \n\nParameters\n\n| context | Required context. Must not be `null`. |\n| internalUsageAttributionId | The internal usage attribution ID to add. |\n|----------------------------|-------------------------------------------|"]]