Class NSProgress

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class NSProgress
    extends NSObject
    Since:
    Available in iOS 7.0 and later.
    • Constructor Detail

      • NSProgress

        public NSProgress()
      • NSProgress

        public NSProgress​(long unitCount)
      • NSProgress

        public NSProgress​(long unitCount,
                          NSProgress parent,
                          long portionOfParentTotalUnitCount)
        Since:
        Available in iOS 9.0 and later.
      • NSProgress

        public NSProgress​(long unitCount,
                          boolean discrete)
        Since:
        Available in iOS 9.0 and later.
    • Method Detail

      • getTotalUnitCount

        public long getTotalUnitCount()
      • setTotalUnitCount

        public void setTotalUnitCount​(long v)
      • getCompletedUnitCount

        public long getCompletedUnitCount()
      • setCompletedUnitCount

        public void setCompletedUnitCount​(long v)
      • getLocalizedDescription

        public java.lang.String getLocalizedDescription()
      • setLocalizedDescription

        public void setLocalizedDescription​(java.lang.String v)
      • getLocalizedAdditionalDescription

        public java.lang.String getLocalizedAdditionalDescription()
      • setLocalizedAdditionalDescription

        public void setLocalizedAdditionalDescription​(java.lang.String v)
      • isCancellable

        public boolean isCancellable()
      • setCancellable

        public void setCancellable​(boolean v)
      • isPausable

        public boolean isPausable()
      • setPausable

        public void setPausable​(boolean v)
      • isCancelled

        public boolean isCancelled()
      • isPaused

        public boolean isPaused()
      • getCancellationHandler

        public java.lang.Runnable getCancellationHandler()
      • setCancellationHandler

        public void setCancellationHandler​(java.lang.Runnable v)
      • getPausingHandler

        public java.lang.Runnable getPausingHandler()
      • setPausingHandler

        public void setPausingHandler​(java.lang.Runnable v)
      • getResumingHandler

        public java.lang.Runnable getResumingHandler()
        Since:
        Available in iOS 9.0 and later.
      • setResumingHandler

        public void setResumingHandler​(java.lang.Runnable v)
        Since:
        Available in iOS 9.0 and later.
      • isIndeterminate

        public boolean isIndeterminate()
      • getFractionCompleted

        public double getFractionCompleted()
      • isFinished

        public boolean isFinished()
      • getEstimatedTimeRemaining

        public NSNumber getEstimatedTimeRemaining()
        Since:
        Available in iOS 11.0 and later.
      • setEstimatedTimeRemaining

        public void setEstimatedTimeRemaining​(NSNumber v)
        Since:
        Available in iOS 11.0 and later.
      • getThroughput

        public NSNumber getThroughput()
        Since:
        Available in iOS 11.0 and later.
      • setThroughput

        public void setThroughput​(NSNumber v)
        Since:
        Available in iOS 11.0 and later.
      • getFileOperationKind

        public java.lang.String getFileOperationKind()
        Since:
        Available in iOS 11.0 and later.
      • setFileOperationKind

        public void setFileOperationKind​(java.lang.String v)
        Since:
        Available in iOS 11.0 and later.
      • getFileURL

        public NSURL getFileURL()
        Since:
        Available in iOS 11.0 and later.
      • setFileURL

        public void setFileURL​(NSURL v)
        Since:
        Available in iOS 11.0 and later.
      • getFileTotalCount

        public NSNumber getFileTotalCount()
        Since:
        Available in iOS 11.0 and later.
      • setFileTotalCount

        public void setFileTotalCount​(NSNumber v)
        Since:
        Available in iOS 11.0 and later.
      • getFileCompletedCount

        public NSNumber getFileCompletedCount()
        Since:
        Available in iOS 11.0 and later.
      • setFileCompletedCount

        public void setFileCompletedCount​(NSNumber v)
        Since:
        Available in iOS 11.0 and later.
      • putUserInfoObject

        public void putUserInfoObject​(java.lang.String key,
                                      NSObject value)
      • becomeCurrent

        public void becomeCurrent​(long unitCount)
      • performAsCurrent

        public void performAsCurrent​(long unitCount,
                                     java.lang.Runnable work)
        Since:
        Available in iOS 11.0 and later.
      • resignCurrent

        public void resignCurrent()
      • addChild

        public void addChild​(NSProgress child,
                             long inUnitCount)
        Since:
        Available in iOS 9.0 and later.
      • setUserInfoObject

        protected void setUserInfoObject​(NSObject objectOrNil,
                                         NSString key)
      • cancel

        public void cancel()
      • pause

        public void pause()
      • resume

        public void resume()
        Since:
        Available in iOS 9.0 and later.
      • getCurrentProgress

        public static NSProgress getCurrentProgress()
      • create

        protected static long create​(long unitCount)
      • createDiscrete

        protected static long createDiscrete​(long unitCount)
        Since:
        Available in iOS 9.0 and later.
      • create

        protected static long create​(long unitCount,
                                     NSProgress parent,
                                     long portionOfParentTotalUnitCount)
        Since:
        Available in iOS 9.0 and later.