CastStatusCodes | 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
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Inherited Methods | [Expand All]
public final class

# CastStatusCodes

extends Object

java.lang.Object
↳ | com.google.android.gms.cast.CastStatusCodes

## Class Overview

Status codes for the Cast APIs.

Status codes for the `Cast` API that are returned in various callbacks as error parameter values.

## Summary

Constants
int | APPLICATION_NOT_FOUND | Status code indicating that a requested application could not be found.
int | APPLICATION_NOT_RUNNING | Status code indicating that a requested application is not currently running.
int | AUTHENTICATION_FAILED | Status code indicating an authentication failure.
int | CANCELED | Status code indicating that an in-progress request has been canceled, most likely because another action has preempted it.
int | INTERNAL_ERROR | Status code indicating that an internal error has occurred.
int | INTERRUPTED | Status code indicating a blocking call was interrupted while waiting and did not run to completion.
int | INVALID_REQUEST | Status code indicating that an invalid request was made.
int | MESSAGE_SEND_BUFFER_TOO_FULL | Status code indicating that a message could not be sent because there is not enough room in the send buffer at this time.
int | MESSAGE_TOO_LARGE | Status code indicating that a message could not be sent because it is too large.
int | NETWORK_ERROR | Status code indicating a network I/O error.
int | NOT_ALLOWED | Status code indicating that the request was disallowed and could not be completed.
int | SUCCESS | Status code indicating no error (success).
int | TIMEOUT | Status code indicating that an operation has timed out.
int | UNKNOWN_ERROR | Status code indicating that an unknown, unexpected error has occurred.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final int APPLICATION_NOT_FOUND

Status code indicating that a requested application could not be found.

Constant Value: 2004 (0x000007d4)

#### public static final int APPLICATION_NOT_RUNNING

Status code indicating that a requested application is not currently running.

Constant Value: 2005 (0x000007d5)

#### public static final int AUTHENTICATION_FAILED

Status code indicating an authentication failure.

Constant Value: 2000 (0x000007d0)

#### public static final int CANCELED

Status code indicating that an in-progress request has been canceled, most likely because another action has preempted it.

Constant Value: 2002 (0x000007d2)

#### public static final int INTERNAL_ERROR

Status code indicating that an internal error has occurred.

Constant Value: 8 (0x00000008)

#### public static final int INTERRUPTED

Status code indicating a blocking call was interrupted while waiting and did not run to completion.

Constant Value: 14 (0x0000000e)

#### public static final int INVALID_REQUEST

Status code indicating that an invalid request was made.

Constant Value: 2001 (0x000007d1)

#### public static final int MESSAGE_SEND_BUFFER_TOO_FULL

Status code indicating that a message could not be sent because there is not enough room in the send buffer at this time.

Constant Value: 2007 (0x000007d7)

#### public static final int MESSAGE_TOO_LARGE

Status code indicating that a message could not be sent because it is too large.

Constant Value: 2006 (0x000007d6)

#### public static final int NETWORK_ERROR

Status code indicating a network I/O error.

Constant Value: 7 (0x00000007)

#### public static final int NOT_ALLOWED

Status code indicating that the request was disallowed and could not be completed.

Constant Value: 2003 (0x000007d3)

#### public static final int SUCCESS

Status code indicating no error (success).

Constant Value: 0 (0x00000000)

#### public static final int TIMEOUT

Status code indicating that an operation has timed out.

Constant Value: 15 (0x0000000f)

#### public static final int UNKNOWN_ERROR

Status code indicating that an unknown, unexpected error has occurred.

Constant Value: 13 (0x0000000d)