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
Public Methods
public static void
addInternalUsageAttributionId
( Context
context, String
internalUsageAttributionId)
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-04-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-14 UTC."],[],[],null,["# MapsApiSettings\n\npublic final class **MapsApiSettings** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nProvides entry points for adding configuration to the Maps API. \n\n### Public Method Summary\n\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static void | [addInternalUsageAttributionId](/android/reference/com/google/android/gms/maps/MapsApiSettings#addInternalUsageAttributionId(android.content.Context,%20java.lang.String))([Context](//developer.android.com/reference/android/content/Context.html) context, [String](//developer.android.com/reference/java/lang/String.html) 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\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static void **addInternalUsageAttributionId** ([Context](//developer.android.com/reference/android/content/Context.html) context, [String](//developer.android.com/reference/java/lang/String.html) internalUsageAttributionId)\n\nAdds a usage attribution ID to the initializer, which helps Google understand which\nlibraries and samples are helpful to developers, such as usage of a UI framework\nsupport library. To opt out of sending the usage attribution ID, it is safe to delete\nthis function call or replace the value with an empty string.\n\nNote that this behavior is only supported by the [MapsInitializer.Renderer.LATEST](/android/reference/com/google/android/gms/maps/MapsInitializer.Renderer#LATEST)\nrenderer. You should only call this method if you have first called [MapsInitializer.initialize(Context, MapsInitializer.Renderer,\nOnMapsSdkInitializedCallback)](/android/reference/com/google/android/gms/maps/MapsInitializer#initialize(android.content.Context,%20com.google.android.gms.maps.MapsInitializer.Renderer,%20com.google.android.gms.maps.OnMapsSdkInitializedCallback)) with the latest renderer. The behavior is\nundefined if invoking this method without calling [MapsInitializer.initialize(Context, MapsInitializer.Renderer,\nOnMapsSdkInitializedCallback)](/android/reference/com/google/android/gms/maps/MapsInitializer#initialize(android.content.Context,%20com.google.android.gms.maps.MapsInitializer.Renderer,%20com.google.android.gms.maps.OnMapsSdkInitializedCallback)) first or attempting to call this API on the\n[MapsInitializer.Renderer.LEGACY](/android/reference/com/google/android/gms/maps/MapsInitializer.Renderer#LEGACY)\nrenderer. \n\n##### Parameters\n\n| context | Required context. Must not be `null`. |\n| internalUsageAttributionId | The internal usage attribution ID to add. |\n|----------------------------|-------------------------------------------|"]]