Package org.robovm.apple.foundation
Class NSByteCountFormatter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSFormatter
-
- org.robovm.apple.foundation.NSByteCountFormatter
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSByteCountFormatter extends NSFormatter
- Since:
- Available in iOS 6.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSByteCountFormatter.NSByteCountFormatterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSFormatter
NSFormatter.NSFormatterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSByteCountFormatter()
protected
NSByteCountFormatter(NSObject.Handle h, long handle)
protected
NSByteCountFormatter(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsNonnumericFormatting()
java.lang.String
format(long byteCount)
static java.lang.String
format(long byteCount, NSByteCountFormatterCountStyle countStyle)
NSByteCountFormatterUnits
getAllowedUnits()
NSByteCountFormatterCountStyle
getCountStyle()
NSFormattingContext
getFormattingContext()
boolean
includesActualByteCount()
boolean
includesCount()
boolean
includesUnit()
boolean
isAdaptive()
void
setAdaptive(boolean v)
void
setAllowedUnits(NSByteCountFormatterUnits v)
void
setAllowsNonnumericFormatting(boolean v)
void
setCountStyle(NSByteCountFormatterCountStyle v)
void
setFormattingContext(NSFormattingContext v)
void
setIncludesActualByteCount(boolean v)
void
setIncludesCount(boolean v)
void
setIncludesUnit(boolean v)
void
setZeroPadsFractionDigits(boolean v)
boolean
zeroPadsFractionDigits()
-
Methods inherited from class org.robovm.apple.foundation.NSFormatter
encode, init
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSByteCountFormatter
public NSByteCountFormatter()
-
NSByteCountFormatter
protected NSByteCountFormatter(NSObject.Handle h, long handle)
-
NSByteCountFormatter
protected NSByteCountFormatter(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getAllowedUnits
public NSByteCountFormatterUnits getAllowedUnits()
-
setAllowedUnits
public void setAllowedUnits(NSByteCountFormatterUnits v)
-
getCountStyle
public NSByteCountFormatterCountStyle getCountStyle()
-
setCountStyle
public void setCountStyle(NSByteCountFormatterCountStyle v)
-
allowsNonnumericFormatting
public boolean allowsNonnumericFormatting()
-
setAllowsNonnumericFormatting
public void setAllowsNonnumericFormatting(boolean v)
-
includesUnit
public boolean includesUnit()
-
setIncludesUnit
public void setIncludesUnit(boolean v)
-
includesCount
public boolean includesCount()
-
setIncludesCount
public void setIncludesCount(boolean v)
-
includesActualByteCount
public boolean includesActualByteCount()
-
setIncludesActualByteCount
public void setIncludesActualByteCount(boolean v)
-
isAdaptive
public boolean isAdaptive()
-
setAdaptive
public void setAdaptive(boolean v)
-
zeroPadsFractionDigits
public boolean zeroPadsFractionDigits()
-
setZeroPadsFractionDigits
public void setZeroPadsFractionDigits(boolean v)
-
getFormattingContext
public NSFormattingContext getFormattingContext()
- Since:
- Available in iOS 8.0 and later.
-
setFormattingContext
public void setFormattingContext(NSFormattingContext v)
- Since:
- Available in iOS 8.0 and later.
-
format
public java.lang.String format(long byteCount)
-
format
public static java.lang.String format(long byteCount, NSByteCountFormatterCountStyle countStyle)
-
-