Package org.robovm.apple.dispatch
Class DispatchQueue
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.dispatch.DispatchObject
-
- org.robovm.apple.dispatch.DispatchQueue
-
public class DispatchQueue extends DispatchObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DispatchQueue.DispatchQueuePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.dispatch.DispatchObject
DispatchObject.DispatchObjectPtr
-
-
Field Summary
Fields Modifier and Type Field Description static int
PRIORITY_BACKGROUND
static int
PRIORITY_DEFAULT
static int
PRIORITY_HIGH
static int
PRIORITY_LOW
-
Constructor Summary
Constructors Modifier Constructor Description protected
DispatchQueue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after(long delay, java.util.concurrent.TimeUnit unit, java.lang.Runnable block)
void
apply(long iterations, org.robovm.objc.block.VoidBlock1<java.lang.Long> block)
void
async(java.lang.Runnable block)
void
at(java.util.Date when, java.lang.Runnable block)
Submits the specifiedRunnable
on thisDispatchQueue
at the specified time.static DispatchQueueAttr
attrMakeInitiallyInactive(DispatchQueueAttr attr)
static DispatchQueueAttr
attrMakeWithAutoreleaseFrequency(DispatchQueueAttr attr, long frequency)
void
barrierAsync(java.lang.Runnable block)
void
barrierSync(java.lang.Runnable block)
static DispatchQueue
create(java.lang.String label, DispatchQueueAttr attr)
static DispatchQueue
createWithTarget(org.robovm.rt.bro.ptr.BytePtr label, DispatchQueueAttr attr, DispatchQueue target)
static DispatchQueue
getGlobalQueue(long identifier, long flags)
java.lang.String
getLabel()
static DispatchQueue
getMainQueue()
void
sync(java.lang.Runnable block)
-
Methods inherited from class org.robovm.apple.dispatch.DispatchObject
release, resume, retain, setTargetQueue, suspend
-
-
-
-
Field Detail
-
PRIORITY_HIGH
public static final int PRIORITY_HIGH
- See Also:
- Constant Field Values
-
PRIORITY_DEFAULT
public static final int PRIORITY_DEFAULT
- See Also:
- Constant Field Values
-
PRIORITY_LOW
public static final int PRIORITY_LOW
- See Also:
- Constant Field Values
-
PRIORITY_BACKGROUND
public static final int PRIORITY_BACKGROUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public void apply(long iterations, org.robovm.objc.block.VoidBlock1<java.lang.Long> block)
- Since:
- Available in iOS 4.0 and later.
-
after
public void after(long delay, java.util.concurrent.TimeUnit unit, java.lang.Runnable block)
- Since:
- Available in iOS 4.0 and later.
-
at
public void at(java.util.Date when, java.lang.Runnable block)
Submits the specifiedRunnable
on thisDispatchQueue
at the specified time.- Parameters:
when
- the time when to submit theRunnable
.block
- theRunnable
to be run.- Since:
- Available in iOS 4.0 and later.
-
getMainQueue
public static DispatchQueue getMainQueue()
- Since:
- Available in iOS 4.0 and later.
-
async
public void async(java.lang.Runnable block)
- Since:
- Available in iOS 4.0 and later.
-
sync
public void sync(java.lang.Runnable block)
- Since:
- Available in iOS 4.0 and later.
-
getGlobalQueue
public static DispatchQueue getGlobalQueue(long identifier, long flags)
- Since:
- Available in iOS 4.0 and later.
-
attrMakeInitiallyInactive
public static DispatchQueueAttr attrMakeInitiallyInactive(DispatchQueueAttr attr)
- Since:
- Available in iOS 10.0 and later.
-
attrMakeWithAutoreleaseFrequency
public static DispatchQueueAttr attrMakeWithAutoreleaseFrequency(DispatchQueueAttr attr, long frequency)
- Since:
- Available in iOS 10.0 and later.
-
createWithTarget
public static DispatchQueue createWithTarget(org.robovm.rt.bro.ptr.BytePtr label, DispatchQueueAttr attr, DispatchQueue target)
- Since:
- Available in iOS 10.0 and later.
-
create
public static DispatchQueue create(java.lang.String label, DispatchQueueAttr attr)
- Since:
- Available in iOS 4.0 and later.
-
getLabel
public java.lang.String getLabel()
- Since:
- Available in iOS 4.0 and later.
-
barrierAsync
public void barrierAsync(java.lang.Runnable block)
- Since:
- Available in iOS 4.3 and later.
-
barrierSync
public void barrierSync(java.lang.Runnable block)
- Since:
- Available in iOS 4.3 and later.
-
-