Connections.StartAdvertisingResult
Stay organized with collections
Save and categorize content based on your preferences.
Result delivered when a local endpoint starts being advertised.
Possible status codes include:
Public Method Summary
abstract String
|
getLocalEndpointName()
Retrieves the human readable name for the local endpoint being advertised
(possibly after resolving name collisions.)
|
Inherited Method Summary
From interface com.google.android.gms.common.api.Result
Public Methods
public abstract String getLocalEndpointName ()
Retrieves the human readable name for the local endpoint being advertised (possibly
after resolving name collisions.)
Returns
- The name of the local endpoint.
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."],[[["`Connections.StartAdvertisingResult` indicates the outcome of an attempt to start advertising a local endpoint for Nearby Connections."],["Possible status codes signify successful advertising, an already advertising state, or an unknown error."],["`getLocalEndpointName()` provides the human-readable name of the local endpoint being advertised."],["The result includes a `Status` object to check for success or failure of the operation."]]],["`Connections.StartAdvertisingResult` indicates the outcome of a local endpoint's advertising attempt. It reports success with `STATUS_OK`, existing advertisement with `STATUS_ALREADY_ADVERTISING`, or failure with `STATUS_ERROR`. The interface, inheriting from `Result`, provides a `getStatus()` method. Additionally, it offers `getLocalEndpointName()`, which returns the human-readable name of the advertised local endpoint, potentially after resolving any naming conflicts.\n"]]