PAGComposition Class Reference
| Inherits from | PAGLayer : NSObject |
|---|---|
| Declared in | PAGComposition.h |
+ Make:
Make a empty PAGComposition with specified size.
+ (PAGComposition *)Make:(CGSize)sizeDeclared In
PAGComposition.h
– setContentSize:
Set the size of the Composition.
- (void)setContentSize:(CGSize)sizeDeclared In
PAGComposition.h
– numChildren
Returns the number of child layers of this composition.
- (NSInteger)numChildrenDeclared In
PAGComposition.h
– getLayerAt:
Returns the child layer that exists at the specified index.
- (PAGLayer *)getLayerAt:(int)indexParameters
index |
The index position of the child layer. |
|---|
Return Value
The child layer at the specified index position.
Declared In
PAGComposition.h
– getLayerIndex:
Returns the index position of a child layer.
- (NSInteger)getLayerIndex:(PAGLayer *)childParameters
child |
The layer instance to identify. |
|---|
Return Value
The index position of the child layer to identify.
Declared In
PAGComposition.h
– setLayerIndex:layer:
Changes the position of an existing child in the container. This affects the layering of child layers.
- (void)setLayerIndex:(NSInteger)index layer:(PAGLayer *)childParameters
index |
The resulting index number for the child layer. |
|---|---|
child |
The child layer for which you want to change the index number. |
Declared In
PAGComposition.h
– contains:
Check whether current PAGComposition cotains the specified pagLayer.
- (BOOL)contains:(PAGLayer *)pagLayerParameters
pagLayer |
specified layer to check |
|---|
Return Value
return YES if the current PAGComposition contains the paglayer,else NO.
Declared In
PAGComposition.h
– removeAllLayers
Remove all PAGLayers from current PAGComposition.
- (void)removeAllLayersDeclared In
PAGComposition.h
– swapLayerAt:withIndex:
Swap the layers at the specified index.
- (void)swapLayerAt:(int)index1 withIndex:(int)index2Parameters
index1 |
specified index 1 to swap |
|---|---|
index2 |
specified index 2 to swap |
Declared In
PAGComposition.h
– audioBytes
Returns the audio data of this composition, which is an AAC audio in an MPEG-4 container.
- (NSData *)audioBytesDeclared In
PAGComposition.h
– audioStartTime
Returns when the first frame of the audio plays in the composition’s timeline.
- (int64_t)audioStartTimeDeclared In
PAGComposition.h
– audioMarkers
Returns the audio Markers of the composition.
- (NSArray<PAGMarker*> *)audioMarkersDeclared In
PAGComposition.h
– getLayersByName:
Returns an array of layers that match the specified layer name.
- (NSArray<PAGLayer*> *)getLayersByName:(NSString *)layerNameDeclared In
PAGComposition.h
– getLayersUnderPoint:
Returns an array of layers that lie under the specified point. The point is in pixels and from this PAGComposition’s local coordinates.
- (NSArray<PAGLayer*> *)getLayersUnderPoint:(CGPoint)pointDeclared In
PAGComposition.h