.. role:: ts-api-decorator

#######
Manager
#######

.. js:module:: Animation
   :noindex:

.. container:: ts-api-section

   .. js:class:: Manager

      Top-level interface for the animation system.



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~Animation.Manager.clear`
   * :js:meth:`~Animation.Manager.createPlayer`
   * :js:meth:`~Animation.Manager.removePlayer`
   * :js:meth:`~Animation.Manager.removePlayerByIndex`
   * :js:meth:`~Animation.Manager.setTickInterval`





------------

Methods
=======

.. rst-class:: ts-api-section

clear
-----

.. js:method:: Manager.clear()



   Removes all players from control of the manager.


   :rtype: void

.. rst-class:: ts-api-section

createPlayer
------------

.. js:method:: Manager.createPlayer( animation)

   :param animation: None
   :type animation: Animation


   Creates a new animation player for the supplied animation.


   :rtype: Player

.. rst-class:: ts-api-section

removePlayer
------------

.. js:method:: Manager.removePlayer( player)

   :param player: None
   :type player: Player


   Removes the provided player from control of the manager. Returns ``true`` is a player was removed


   :rtype: boolean

.. rst-class:: ts-api-section

removePlayerByIndex
-------------------

.. js:method:: Manager.removePlayerByIndex( index)

   :param index: None
   :type index: number


   Removes the player at the provided index from control of the manager. Returns ``true`` if a player was removed


   :rtype: boolean

.. rst-class:: ts-api-section

setTickInterval
---------------

.. js:method:: Manager.setTickInterval( milliseconds)

   :param milliseconds: number of milliseconds between update intervals
   :type milliseconds: number


   Sets the interval at which animations are updated.


   :rtype: void

