MessageApi.SendMessageResult
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
abstract int |
getRequestId()
Returns an ID used to identify the sent message.
|
Inherited Method Summary
From interface com.google.android.gms.common.api.Result
Public Methods
public abstract int getRequestId ()
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."],[[["`MessageApi.SendMessageResult` is deprecated and developers should use `MessageClient.sendMessage` instead."],["It provides the request ID assigned to a sent message, which will be `MessageApi.UNKNOWN_REQUEST_ID` if the operation fails."],["The `getRequestId()` method returns the ID used to identify the sent message."],["A successful operation is indicated by a successful `Result.getStatus()`, otherwise `getRequestId()` returns `MessageApi.UNKNOWN_REQUEST_ID`."]]],["`MessageApi.SendMessageResult` is a deprecated interface, now replaced by `MessageClient.sendMessage`. It provides a request ID for a sent message. The `getRequestId()` method retrieves this ID. If the message sending failed, the ID will be `MessageApi.UNKNOWN_REQUEST_ID`, and the status will be unsuccessful. It implements `Result`, and inherits the `getStatus()` method to determine if the result of the message is successful.\n"]]