Package org.robovm.apple.corefoundation
Class CFMessagePort
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFMessagePort
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFMessagePort extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFMessagePort.CFMessagePortPtr
static interface
CFMessagePort.InvalidationCallback
static interface
CFMessagePort.MessagePortCallback
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFMessagePort()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CFMessagePort
createLocal(java.lang.String name, CFMessagePort.MessagePortCallback callback)
protected static CFMessagePort
createLocal(CFAllocator allocator, java.lang.String name, org.robovm.rt.bro.ptr.FunctionPtr callout, org.robovm.apple.corefoundation.CFMessagePortContext context, org.robovm.rt.bro.ptr.BooleanPtr shouldFreeInfo)
static CFMessagePort
createRemote(java.lang.String name)
protected static CFMessagePort
createRemote(CFAllocator allocator, java.lang.String name)
static CFRunLoopSource
createRunLoopSource(CFAllocator allocator, CFMessagePort local, long order)
static CFRunLoopSource
createRunLoopSource(CFMessagePort local, long order)
static long
getClassTypeID()
CFMessagePort.InvalidationCallback
getInvalidationCallBack()
java.lang.String
getName()
void
invalidate()
boolean
isRemote()
boolean
isValid()
CFData
sendRequest(int msgid, CFData data, double sendTimeout, double rcvTimeout, java.lang.String replyMode)
protected CFMessagePortErrorCode
sendRequest(int msgid, CFData data, double sendTimeout, double rcvTimeout, java.lang.String replyMode, CFData.CFDataPtr returnData)
void
setDispatchQueue(DispatchQueue queue)
void
setInvalidationCallBack(CFMessagePort.InvalidationCallback callback)
boolean
setName(java.lang.String newName)
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
createLocal
public static CFMessagePort createLocal(java.lang.String name, CFMessagePort.MessagePortCallback callback)
-
createRemote
public static CFMessagePort createRemote(java.lang.String name)
-
getInvalidationCallBack
public CFMessagePort.InvalidationCallback getInvalidationCallBack()
-
setInvalidationCallBack
public void setInvalidationCallBack(CFMessagePort.InvalidationCallback callback)
-
createRunLoopSource
public static CFRunLoopSource createRunLoopSource(CFMessagePort local, long order)
-
sendRequest
public CFData sendRequest(int msgid, CFData data, double sendTimeout, double rcvTimeout, java.lang.String replyMode) throws NSErrorException
- Parameters:
msgid
-data
-sendTimeout
-rcvTimeout
-replyMode
-- Returns:
- Throws:
NSErrorException
-
getClassTypeID
public static long getClassTypeID()
-
createLocal
protected static CFMessagePort createLocal(CFAllocator allocator, java.lang.String name, org.robovm.rt.bro.ptr.FunctionPtr callout, org.robovm.apple.corefoundation.CFMessagePortContext context, org.robovm.rt.bro.ptr.BooleanPtr shouldFreeInfo)
-
createRemote
protected static CFMessagePort createRemote(CFAllocator allocator, java.lang.String name)
-
isRemote
public boolean isRemote()
-
getName
public java.lang.String getName()
-
setName
public boolean setName(java.lang.String newName)
-
invalidate
public void invalidate()
-
isValid
public boolean isValid()
-
sendRequest
protected CFMessagePortErrorCode sendRequest(int msgid, CFData data, double sendTimeout, double rcvTimeout, java.lang.String replyMode, CFData.CFDataPtr returnData)
-
createRunLoopSource
public static CFRunLoopSource createRunLoopSource(CFAllocator allocator, CFMessagePort local, long order)
-
setDispatchQueue
public void setDispatchQueue(DispatchQueue queue)
- Since:
- Available in iOS 4.0 and later.
-
-