# SessionResult.Code

# SessionResult.Code

Artifact:[androidx.media3:media3-session](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/session/SessionResult.java+class:androidx.media3.session.SessionResult.Code)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/session/SessionResult.Code "View this page in Java")

<br />

```
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = ElementType.TYPE_USE)
@IntDef(value = [SessionError.INFO_CANCELLED, SessionError.ERROR_UNKNOWN, SessionError.ERROR_INVALID_STATE, SessionError.ERROR_BAD_VALUE, SessionError.ERROR_PERMISSION_DENIED, SessionError.ERROR_IO, SessionError.ERROR_SESSION_DISCONNECTED, SessionError.ERROR_NOT_SUPPORTED, SessionError.ERROR_SESSION_AUTHENTICATION_EXPIRED, SessionError.ERROR_SESSION_PREMIUM_ACCOUNT_REQUIRED, SessionError.ERROR_SESSION_CONCURRENT_STREAM_LIMIT, SessionError.ERROR_SESSION_PARENTAL_CONTROL_RESTRICTED, SessionError.ERROR_SESSION_NOT_AVAILABLE_IN_REGION, SessionError.ERROR_SESSION_SKIP_LIMIT_REACHED, SessionError.ERROR_SESSION_SETUP_REQUIRED])
annotation SessionResult.Code
```

<br />

*** ** * ** ***

Result codes.

- Error code: Negative integer
- Success code: 0
- Info code: Positive integer

<!-- -->

- `0 < |code| < 100`: Reserved for Player specific code.
- `100 <= |code| < 500`: Session/Controller specific code.
- `500 <= |code| < 1000`: Browser/Library session specific code.
- `1000 <= |code|`: Reserved for Player custom code.