Package org.robovm.apple.coremedia
Class CMTime
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.rt.bro.Struct<CMTime>
-
- org.robovm.apple.coremedia.CMTime
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CMTime.AsValuedListMarshaler
static class
CMTime.CMTimePtr
-
Field Summary
Fields Modifier and Type Field Description static long
MaxTimescale
-
Constructor Summary
Constructors Constructor Description CMTime()
CMTime(long value, int timescale, CMTimeFlags flags, long epoch)
-
Method Summary
-
Methods inherited from class org.robovm.rt.bro.Struct
_sizeOf, allocate, allocate, as, clear, clear, copy, copy, copyWithMalloc, copyWithMalloc, free, iterator, iterator, malloc, malloc, next, next, offsetOf, previous, previous, sizeOf, sizeOf, toArray, toList, toStruct, update, update, update, wrap
-
-
-
-
Field Detail
-
MaxTimescale
public static final long MaxTimescale
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CMTime
public CMTime()
-
CMTime
public CMTime(long value, int timescale, CMTimeFlags flags, long epoch)
-
-
Method Detail
-
getValue
public long getValue()
-
setValue
public CMTime setValue(long value)
-
getTimescale
public int getTimescale()
-
setTimescale
public CMTime setTimescale(int timescale)
-
getFlags
public CMTimeFlags getFlags()
-
setFlags
public CMTime setFlags(CMTimeFlags flags)
-
getEpoch
public long getEpoch()
-
setEpoch
public CMTime setEpoch(long epoch)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
Invalid
public static CMTime Invalid()
- Since:
- Available in iOS 4.0 and later.
-
Indefinite
public static CMTime Indefinite()
- Since:
- Available in iOS 4.0 and later.
-
PositiveInfinity
public static CMTime PositiveInfinity()
- Since:
- Available in iOS 4.0 and later.
-
NegativeInfinity
public static CMTime NegativeInfinity()
- Since:
- Available in iOS 4.0 and later.
-
Zero
public static CMTime Zero()
- Since:
- Available in iOS 4.0 and later.
-
MappingInvalid
public static CMTimeMapping MappingInvalid()
- Since:
- Available in iOS 9.0 and later.
-
create
public static CMTime create(long value, int timescale)
- Since:
- Available in iOS 4.0 and later.
-
create
public static CMTime create(long value, int timescale, long epoch)
- Since:
- Available in iOS 4.0 and later.
-
create
public static CMTime create(double seconds, int preferredTimescale)
- Since:
- Available in iOS 4.0 and later.
-
getSeconds
public double getSeconds()
- Since:
- Available in iOS 4.0 and later.
-
convertScale
public CMTime convertScale(int newTimescale, CMTimeRoundingMethod method)
- Since:
- Available in iOS 4.0 and later.
-
multiply
public CMTime multiply(int multiplier)
- Since:
- Available in iOS 4.0 and later.
-
multiplyByFloat64
public CMTime multiplyByFloat64(double multiplier)
- Since:
- Available in iOS 4.0 and later.
-
multiplyByRatio
public CMTime multiplyByRatio(int multiplier, int divisor)
- Since:
- Available in iOS 7.1 and later.
-
compare
public int compare(CMTime time2)
- Since:
- Available in iOS 4.0 and later.
-
absoluteValue
public CMTime absoluteValue()
- Since:
- Available in iOS 4.0 and later.
-
asDictionary
public NSDictionary asDictionary(CFAllocator allocator)
- Since:
- Available in iOS 4.0 and later.
-
create
public static CMTime create(NSDictionary dictionaryRepresentation)
- Since:
- Available in iOS 4.0 and later.
-
show
public void show()
- Since:
- Available in iOS 4.0 and later.
-
mapTimeFromRangeToRange
public CMTime mapTimeFromRangeToRange(CMTimeRange fromRange, CMTimeRange toRange)
- Since:
- Available in iOS 4.0 and later.
-
clampToRange
public CMTime clampToRange(CMTimeRange range)
- Since:
- Available in iOS 4.0 and later.
-
mapDurationFromRangeToRange
public CMTime mapDurationFromRangeToRange(CMTimeRange fromRange, CMTimeRange toRange)
- Since:
- Available in iOS 4.0 and later.
-
foldIntoRange
public CMTime foldIntoRange(CMTimeRange foldRange)
- Since:
- Available in iOS 12.0 and later.
-
mappingMake
public static CMTimeMapping mappingMake(CMTimeRange source, CMTimeRange target)
- Since:
- Available in iOS 9.0 and later.
-
mappingMakeEmpty
public static CMTimeMapping mappingMakeEmpty(CMTimeRange target)
- Since:
- Available in iOS 9.0 and later.
-
mappingCopyAsDictionary
public static NSDictionary mappingCopyAsDictionary(CMTimeMapping mapping, CFAllocator allocator)
- Since:
- Available in iOS 9.0 and later.
-
mappingMakeFromDictionary
public static CMTimeMapping mappingMakeFromDictionary(NSDictionary dictionaryRepresentation)
- Since:
- Available in iOS 9.0 and later.
-
mappingCopyDescription
public static java.lang.String mappingCopyDescription(CFAllocator allocator, CMTimeMapping mapping)
- Since:
- Available in iOS 9.0 and later.
-
mappingShow
public static void mappingShow(CMTimeMapping mapping)
- Since:
- Available in iOS 9.0 and later.
-
-