One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVCaption

class · iOS 18.0+ · SDK 27.1

class AVCaption

Members (13)

init · iOS 18.0+

init

TypeScript
static init(text: string, timeRange: _CoreMedia_CMTimeRange): AVCaption
Swift declaration
init(_ text: String, timeRange: CMTimeRange)
get

animation

TypeScript
get animation(): AVCaption_Animation
Swift declaration
var animation: AVCaption.Animation { get }
get

region

TypeScript
get region(): (AVCaptionRegion) | null
Swift declaration
var region: AVCaptionRegion? { get }
get · iOS 18.0+

text

TypeScript
get text(): string
Swift declaration
var text: String { get }
get

textAlignment

TypeScript
get textAlignment(): AVCaption_TextAlignment
Swift declaration
var textAlignment: AVCaption.TextAlignment { get }
get · iOS 18.0+

timeRange

TypeScript
get timeRange(): _CoreMedia_CMTimeRange
Swift declaration
var timeRange: CMTimeRange { get }
method · iOS 18.0+

decoration

TypeScript
decoration(index: SDKHandle): [AVCaption_Decoration, SDKHandle]
Swift declaration
@nonobjc func decoration(at index: String.Index) -> (AVCaption.Decoration, Range<String.Index>)
method · iOS 18.0+

fontWeight

TypeScript
fontWeight(index: SDKHandle): [AVCaption_FontWeight, SDKHandle]
Swift declaration
@nonobjc func fontWeight(at index: String.Index) -> (AVCaption.FontWeight, Range<String.Index>)
method · iOS 18.0+

textCombine

TypeScript
textCombine(index: SDKHandle): [AVCaption_TextCombine, SDKHandle]
Swift declaration
@nonobjc func textCombine(at index: String.Index) -> (AVCaption.TextCombine, Range<String.Index>)
method · iOS 18.0+

backgroundColor

TypeScript
backgroundColor(index: SDKHandle): [(_CoreGraphics_CGColor) | null, SDKHandle]
Swift declaration
@nonobjc func backgroundColor(at index: String.Index) -> (CGColor?, Range<String.Index>)
method · iOS 18.0+

ruby

TypeScript
ruby(index: SDKHandle): [(AVCaption_Ruby) | null, SDKHandle]
Swift declaration
@nonobjc func ruby(at index: String.Index) -> (AVCaption.Ruby?, Range<String.Index>)
method · iOS 18.0+

fontStyle

TypeScript
fontStyle(index: SDKHandle): [AVCaption_FontStyle, SDKHandle]
Swift declaration
@nonobjc func fontStyle(at index: String.Index) -> (AVCaption.FontStyle, Range<String.Index>)
method · iOS 18.0+

textColor

TypeScript
textColor(index: SDKHandle): [(_CoreGraphics_CGColor) | null, SDKHandle]
Swift declaration
@nonobjc func textColor(at index: String.Index) -> (CGColor?, Range<String.Index>)

Skipped declarations

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

AVCaption.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All AVFoundation types →