One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVVideoCompositionLayerInstruction

class · iOS 4.0+ · SDK 27.1

class AVVideoCompositionLayerInstruction

Members (8)

method · iOS 7.0+

getCropRectangleRamp

TypeScript
getCropRectangleRamp(time: _CoreMedia_CMTime, startCropRectangle?: ("animatableData" | SDKHandle) | null, endCropRectangle?: ("animatableData" | SDKHandle) | null, timeRange?: (SDKHandle) | null): boolean
Swift declaration
func getCropRectangleRamp(for time: CMTime, startCropRectangle: UnsafeMutablePointer<CGRect>?, endCropRectangle: UnsafeMutablePointer<CGRect>?, timeRange: UnsafeMutablePointer<CMTimeRange>?) -> Bool
method · iOS 4.0+

getOpacityRamp

TypeScript
getOpacityRamp(time: _CoreMedia_CMTime, startOpacity?: (SDKHandle) | null, endOpacity?: (SDKHandle) | null, timeRange?: (SDKHandle) | null): boolean
Swift declaration
func getOpacityRamp(for time: CMTime, startOpacity: UnsafeMutablePointer<Float>?, endOpacity: UnsafeMutablePointer<Float>?, timeRange: UnsafeMutablePointer<CMTimeRange>?) -> Bool
method · iOS 4.0+

getTransformRamp

TypeScript
getTransformRamp(time: _CoreMedia_CMTime, startTransform?: (SDKHandle) | null, endTransform?: (SDKHandle) | null, timeRange?: (SDKHandle) | null): boolean
Swift declaration
func getTransformRamp(for time: CMTime, start startTransform: UnsafeMutablePointer<CGAffineTransform>?, end endTransform: UnsafeMutablePointer<CGAffineTransform>?, timeRange: UnsafeMutablePointer<CMTimeRange>?) -> Bool
get · iOS 4.0+

trackID

TypeScript
get trackID(): number
Swift declaration
var trackID: CMPersistentTrackID { get }
method · iOS 26.0+

opacityRamp

TypeScript
opacityRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_OpacityRamp) | null
Swift declaration
func opacityRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.OpacityRamp?

Obtains the opacity ramp that includes a specified time.

init · iOS 26.0+

init

TypeScript
static init(configuration: AVVideoCompositionLayerInstruction_Configuration): AVVideoCompositionLayerInstruction
Swift declaration
convenience init(configuration: AVVideoCompositionLayerInstruction.Configuration)

Initialize an AVVideoCompositionLayerInstruction with a configuration. - Parameter configuration: contains the property values for a new AVVideoCompositionLayerInstruction.

method · iOS 26.0+

transformRamp

TypeScript
transformRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_TransformRamp) | null
Swift declaration
func transformRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.TransformRamp?

Obtains the transform ramp that includes a specified time.

method · iOS 26.0+

cropRectangleRamp

TypeScript
cropRectangleRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_CropRectangleRamp) | null
Swift declaration
func cropRectangleRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.CropRectangleRamp?

Obtains the crop rectangle ramp that includes the specified time.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVVideoCompositionLayerInstruction.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All AVFoundation types →