# Class: Slider

## Constructor

#### new Slider()

  The Slider object provides access to slider-related actions.
  Server periodically generates a 'screenshot' of currently presented content (screen sharing or whiteboard) and notifies clients
  that the data is available to download.
  For each slide client can download the full image and/or the smaller thumbnail.

## Methods

#### getSlides() → {Array.<AvayaClientServices.Services.Collaboration.SliderSlide>}

  Returns all currently available collaboration slides

  ##### Returns:

  { Array.<AvayaClientServices.Services.Collaboration.SliderSlide> }

### Managing callbacks

#### addOnSlidesAddedCallback(callback)

  Adds new onSlidesAddedCallback.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `callback` | AvayaClientServices.Services.Collaboration.Slider#onSlidesAddedCallback |

#### addOnSlidesRemovedCallback(callback)

  Adds new onSlidesRemovedCallback.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `callback` | AvayaClientServices.Services.Collaboration.Slider#onSlidesRemovedCallback |

#### removeOnSlidesAddedCallback(callback)

  Removes existing onSlidesAddedCallback.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `callback` | AvayaClientServices.Services.Collaboration.Slider#onSlidesAddedCallback |

#### removeOnSlidesRemovedCallback(callback)

  Removes existing onSlidesRemovedCallback.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `callback` | AvayaClientServices.Services.Collaboration.Slider#onSlidesRemovedCallback |

## Type Definitions

#### onSlidesAddedCallback(slides)

  Interface for callback function invoked when new slides are available.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `slides` | Array.<AvayaClientServices.Services.Collaboration.SliderSlide> | Array of SliderSlides

#### onSlidesRemovedCallback(slides)

  Interface for callback function invoked when slides were removed.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `slides` | Array.<AvayaClientServices.Services.Collaboration.SliderSlide> | Array of SliderSlides