# SplitInstallSessionState

Summary:[Ctors](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState#pubctors)\|[Methods](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState#inhmethods)  

# SplitInstallSessionState

`
public


abstract
class
SplitInstallSessionState
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|--------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | com.google.android.play.core.splitinstall.SplitInstallSessionState |

<br />

*** ** * ** ***

The current state of a split install request.

For more information and examples, see[Monitor the request state](https://d.android.com/guide/playcore/dynamic-delivery#monitor_requests).

## Summary

|                                                                              ### Public constructors                                                                              ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[SplitInstallSessionState](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#SplitInstallSessionState())`() ` |

|                                                                                                                                                                                                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract long`                                                                                                                                      | ` `[bytesDownloaded](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#bytesDownloaded())`() ` Returns the number of bytes downloaded so far.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static `[SplitInstallSessionState](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html) | ` `[create](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#create(int,%20int,%20int,%20long,%20long,%20java.util.List<java.lang.String>,%20java.util.List<java.lang.String>))`(int sessionId, int status, int errorCode, long bytesDownloaded, long totalBytesToDownload, `[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`> moduleNames, `[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`> languages) ` Creates a`SplitInstallSessionState`data object. |
| ` abstract int`                                                                                                                                       | ` `[errorCode](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#errorCode())`() ` Returns the error code for a split install, or[SplitInstallErrorCode.NO_ERROR](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.html#NO_ERROR)if the install is successful or in progress.                                                                                                                                                                                                                                                                                                               |
| ` boolean`                                                                                                                                            | ` `[hasTerminalStatus](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#hasTerminalStatus())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` `[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`   | ` `[languages](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#languages())`() ` Returns the languages that are included in this install session.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` `[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`   | ` `[moduleNames](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#moduleNames())`() ` Returns the modules that are included in this install session.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` abstract `[PendingIntent](https://developer.android.com/reference/android/app/PendingIntent.html)                                                   | ` `[resolutionIntent](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#resolutionIntent())`() ` *This method is deprecated. please use[SplitInstallManager.startConfirmationDialogForResult(SplitInstallSessionState, Activity, int)](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallManager.html#startConfirmationDialogForResult(com.google.android.play.core.splitinstall.SplitInstallSessionState,%20android.app.Activity,%20int))instead.*                                                                                                                                                          |
| ` abstract int`                                                                                                                                       | ` `[sessionId](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#sessionId())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` abstract int`                                                                                                                                       | ` `[status](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#status())`() ` Returns the status of a split install session.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` abstract long`                                                                                                                                      | ` `[totalBytesToDownload](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html#totalBytesToDownload())`() ` Returns the total number of bytes to download in this session.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public constructors

### SplitInstallSessionState

```
public SplitInstallSessionState ()
```

<br />

<br />

## Public methods

### bytesDownloaded

```
public abstract long bytesDownloaded ()
```

Returns the number of bytes downloaded so far.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### create

```
public static SplitInstallSessionState create (int sessionId, 
                int status, 
                int errorCode, 
                long bytesDownloaded, 
                long totalBytesToDownload, 
                List<String> moduleNames, 
                List<String> languages)
```

Creates a`SplitInstallSessionState`data object.

This method cannot be used to create states in the[SplitInstallSessionStatus.REQUIRES_USER_CONFIRMATION](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallSessionStatus.html#REQUIRES_USER_CONFIRMATION)state.

<br />

|              Parameters               ||
|------------------------|---------------|
| `sessionId`            | `int` <br />  |
| `status`               | `int` <br />  |
| `errorCode`            | `int` <br />  |
| `bytesDownloaded`      | `long` <br /> |
| `totalBytesToDownload` | `long` <br /> |
| `moduleNames`          | `List` <br /> |
| `languages`            | `List` <br /> |

|                                                                       Returns                                                                       ||
|---------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [SplitInstallSessionState](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallSessionState.html) | <br /> |

### errorCode

```
public abstract int errorCode ()
```

Returns the error code for a split install, or[SplitInstallErrorCode.NO_ERROR](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.html#NO_ERROR)if the install is successful or in progress.

<br />

|                                                                                Returns                                                                                ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | a value from[SplitInstallErrorCode](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.html) <br /> |

### hasTerminalStatus

```
public boolean hasTerminalStatus ()
```

<br />

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### languages

```
public List<String> languages ()
```

Returns the languages that are included in this install session.

<br />

|                                                                                             Returns                                                                                             ||
|--------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | the list of languages or an empty list <br /> |

### moduleNames

```
public List<String> moduleNames ()
```

Returns the modules that are included in this install session.

<br />

|                                                                                            Returns                                                                                            ||
|--------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | the list of modules or an empty list <br /> |

### resolutionIntent

```
public abstract PendingIntent resolutionIntent ()
```

<br />

**This method is deprecated.**   
please use[SplitInstallManager.startConfirmationDialogForResult(SplitInstallSessionState, Activity, int)](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallManager.html#startConfirmationDialogForResult(com.google.android.play.core.splitinstall.SplitInstallSessionState,%20android.app.Activity,%20int))instead.

<br />

<br />

|                                             Returns                                             ||
|-----------------------------------------------------------------------------------------|--------|
| [PendingIntent](https://developer.android.com/reference/android/app/PendingIntent.html) | <br /> |

### sessionId

```
public abstract int sessionId ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### status

```
public abstract int status ()
```

Returns the status of a split install session.

<br />

|                                                                                    Returns                                                                                    ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | a value from[SplitInstallSessionStatus](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallSessionStatus.html) <br /> |

### totalBytesToDownload

```
public abstract long totalBytesToDownload ()
```

Returns the total number of bytes to download in this session.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |