Class NWUDPSession
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.networkextension.NWUDPSession
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public class NWUDPSession extends NSObject
- Since:
- Available in iOS 9.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNWUDPSession.NWUDPSessionPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description NWUDPSession()protectedNWUDPSession(NSObject.Handle h, long handle)protectedNWUDPSession(NSObject.SkipInit skipInit)NWUDPSession(NWUDPSession session) -
Method Summary
Modifier and Type Method Description voidcancel()NWPathgetCurrentPath()NWEndpointgetEndpoint()longgetMaximumDatagramLength()NWEndpointgetResolvedEndpoint()NWUDPSessionStategetState()booleanhasBetterPath()protected longinit(NWUDPSession session)booleanisViable()voidsetReadHandler(VoidBlock2<NSArray<NSData>,NSError> handler, long maxDatagrams)voidtryNextResolvedEndpoint()voidwriteDatagram(NSData datagram, VoidBlock1<NSError> completionHandler)voidwriteMultipleDatagrams(NSArray<NSData> datagramArray, VoidBlock1<NSError> completionHandler)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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
NWUDPSession
public NWUDPSession() -
NWUDPSession
-
NWUDPSession
-
NWUDPSession
- Since:
- Available in iOS 9.0 and later.
-
-
Method Details
-
getState
- Since:
- Available in iOS 9.0 and later.
-
getEndpoint
- Since:
- Available in iOS 9.0 and later.
-
getResolvedEndpoint
- Since:
- Available in iOS 9.0 and later.
-
isViable
public boolean isViable()- Since:
- Available in iOS 9.0 and later.
-
hasBetterPath
public boolean hasBetterPath()- Since:
- Available in iOS 9.0 and later.
-
getCurrentPath
- Since:
- Available in iOS 9.0 and later.
-
getMaximumDatagramLength
public long getMaximumDatagramLength()- Since:
- Available in iOS 9.0 and later.
-
init
- Since:
- Available in iOS 9.0 and later.
-
tryNextResolvedEndpoint
public void tryNextResolvedEndpoint()- Since:
- Available in iOS 9.0 and later.
-
setReadHandler
- Since:
- Available in iOS 9.0 and later.
-
writeMultipleDatagrams
public void writeMultipleDatagrams(NSArray<NSData> datagramArray, VoidBlock1<NSError> completionHandler)- Since:
- Available in iOS 9.0 and later.
-
writeDatagram
- Since:
- Available in iOS 9.0 and later.
-
cancel
public void cancel()- Since:
- Available in iOS 9.0 and later.
-