#import <AMInstanciable.h>
Public Member Functions | |
(id) | - createInstance |
Creates a new instance of the object if possible and return it. | |
(id) | - createInstanceWithParentUid: |
Creates a new instance of the object with the given parent UID if possible and return it. | |
(void) | - destroyInstance: |
Destroy the given instance of the object. | |
(void) | - destroyInstanceFromParentUid: |
Destroy the instance of the playable source with the given parent UID. | |
(id) | - startFromParentUid:listener: |
Starts the playable source with the given parent UID. | |
(id) | - stopFromParentUid: |
Stops the instance of the playable source with the given parent UID. | |
(BOOL) | - isPlayingFromParentUid: |
Gets the current playing status of the instance of the source with the given parent UID. | |
(double) | - getDurationFromParentUid: |
Gets the duration of the instance of the playable source with the given parent UID. |
- (id) createInstance |
Creates a new instance of the object if possible and return it.
If creating a new instance is not possible, nil is returned.
- (id) createInstanceWithParentUid: | (UID) | _uid |
Creates a new instance of the object with the given parent UID if possible and return it.
If creating a new instance is not possible, nil is returned.
uid | The UID of the object holding the instance new instance. |
- (void) destroyInstance: | (id) | _instance |
Destroy the given instance of the object.
instance | The instance of the object to destroy. |
- (void) destroyInstanceFromParentUid: | (UID) | _uid |
Destroy the instance of the playable source with the given parent UID.
uid | The parent UID you want to destroy the corresponding instance. |
- (double) getDurationFromParentUid: | (UID) | _uid |
Gets the duration of the instance of the playable source with the given parent UID.
uid | The parent UID of the instance. |
- (BOOL) isPlayingFromParentUid: | (UID) | _uid |
Gets the current playing status of the instance of the source with the given parent UID.
uid | The parent UID of the instance. |
- (id) startFromParentUid: | (UID) | _uid | ||
listener: | (id) | _listener | ||
Starts the playable source with the given parent UID.
uid | The UID of the object holding the instance of the playable object. | |
listener | The optional listener of the created instance events. |
- (id) stopFromParentUid: | (UID) | _uid |
Stops the instance of the playable source with the given parent UID.
If no instance is found with this ID suffix, it will be ignored.
uid | The parent UID of the instance to stop. |