Class CMTime

  • All Implemented Interfaces:
    java.lang.Iterable<CMTime>

    public class CMTime
    extends org.robovm.rt.bro.Struct<CMTime>
    • 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)
      • getEpoch

        public long getEpoch()
      • setEpoch

        public CMTime setEpoch​(long epoch)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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.
      • add

        public CMTime add​(CMTime rhs)
        Since:
        Available in iOS 4.0 and later.
      • subtract

        public CMTime subtract​(CMTime rhs)
        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.
      • minimum

        public CMTime minimum​(CMTime time2)
        Since:
        Available in iOS 4.0 and later.
      • maximum

        public CMTime maximum​(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.
      • mappingMakeEmpty

        public static CMTimeMapping mappingMakeEmpty​(CMTimeRange target)
        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.