MessageApi.SendMessageResult | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public static interface

# MessageApi.SendMessageResult

implements Result

com.google.android.gms.wearable.MessageApi.SendMessageResult

## Class Overview

Contains the request id assigned to the message. On failure, the id will be `UNKNOWN_REQUEST_ID` and the status will be unsuccessful.

## Summary

Public Methods
abstract int | getRequestId() Returns an ID used to identify the sent message.

[Expand] Inherited Methods
From interface com.google.android.gms.common.api.Result
abstract Status | getStatus()

## Public Methods

#### public abstract int getRequestId ()

Returns an ID used to identify the sent message. If `getStatus()` is not successful, this value will be `UNKNOWN_REQUEST_ID`.