# SynchSDK

## Nested classes <a href="#nested-classes" id="nested-classes"></a>

| Classes                                                   |
| --------------------------------------------------------- |
| SynchSDK - creates an instance of the SynchSDK            |
| SynchListener - an interface containing the API callbacks |

## Public Method Summary <a href="#public-method-summary" id="public-method-summary"></a>

| Type     | Methods                                                 | Parameters                                                                                                                       |
| -------- | ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| SynchSDK | **init**(accessToken: String)                           | <ul><li>accessToken - authentication token</li></ul>                                                                             |
| void     | createGroup(**\_** groupId: String, clientName: String) | <ul><li><p>groupId - group identificator</p><ul><li>Max length is 255 chars</li></ul></li><li>clientName - client name</li></ul> |
| void     | attachListener(**\_** listner: SyncListener)            | <ul><li>listner - syncSdk's callbacks</li></ul>                                                                                  |
| void     | startSynchronize()                                      |                                                                                                                                  |
| void     | stopSynchronize()                                       |                                                                                                                                  |
| void     | playerSeek(position: Int)                               | <p></p><ul><li>position: value should be in milliseconds</li></ul>                                                               |
| void     | playerPause()                                           |                                                                                                                                  |
| void     | playerPlay()                                            |                                                                                                                                  |
