PinConfig.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
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 2024-10-31 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 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003ePinConfig.Builder\u003c/code\u003e is used to create \u003ccode\u003ePinConfig\u003c/code\u003e instances for customizing map pins.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the background color, border color, and glyph of the pin using the builder's methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method creates a \u003ccode\u003ePinConfig\u003c/code\u003e object with the specified configurations.\u003c/p\u003e\n"]]],["The `PinConfig.Builder` class creates `PinConfig` instances. Key actions include setting the pin's properties: background color via `setBackgroundColor`, border color with `setBorderColor`, and the glyph using `setGlyph`. The `build` method finalizes and constructs the `PinConfig` object. The class also inherits basic methods like `equals`, `hashCode`, and `toString`. It provides a constructor for instantiating the builder itself.\n"],null,["# PinConfig.Builder\n\npublic static class **PinConfig.Builder** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nA builder for creating [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig)\ninstances. \n\n### Public Constructor Summary\n\n|---|-----------------------------------------------------------------------------------------------|\n| | [Builder](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder#Builder())() |\n\n### Public Method Summary\n\n|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig) | [build](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder#build())() Builds a [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig). |\n| [PinConfig.Builder](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder) | [setBackgroundColor](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder#setBackgroundColor(int))(int backgroundColor) Sets the background color of the [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig). |\n| [PinConfig.Builder](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder) | [setBorderColor](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder#setBorderColor(int))(int borderColor) Sets the border color of the [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig). |\n| [PinConfig.Builder](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder) | [setGlyph](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder#setGlyph(com.google.android.gms.maps.model.PinConfig.Glyph))([PinConfig.Glyph](/android/reference/com/google/android/gms/maps/model/PinConfig.Glyph) glyph) Sets the [PinConfig.Glyph](/android/reference/com/google/android/gms/maps/model/PinConfig.Glyph) of the [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig). |\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 Constructors\n-------------------\n\n#### public **Builder** ()\n\nPublic Methods\n--------------\n\n#### public [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig)\n**build** ()\n\nBuilds a [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig). \n\n#### public [PinConfig.Builder](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder)\n**setBackgroundColor** (int backgroundColor)\n\nSets the background color of the [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig). \n\n#### public [PinConfig.Builder](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder)\n**setBorderColor** (int borderColor)\n\nSets the border color of the [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig). \n\n#### public [PinConfig.Builder](/android/reference/com/google/android/gms/maps/model/PinConfig.Builder)\n**setGlyph** ([PinConfig.Glyph](/android/reference/com/google/android/gms/maps/model/PinConfig.Glyph) glyph)\n\nSets the [PinConfig.Glyph](/android/reference/com/google/android/gms/maps/model/PinConfig.Glyph)\nof the [PinConfig](/android/reference/com/google/android/gms/maps/model/PinConfig)."]]