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
,org.robovm.objc.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 class
NWUDPSession.NWUDPSessionPtr
-
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 NWUDPSession()
protected
NWUDPSession(NSObject.Handle h, long handle)
protected
NWUDPSession(NSObject.SkipInit skipInit)
NWUDPSession(NWUDPSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
NWPath
getCurrentPath()
NWEndpoint
getEndpoint()
long
getMaximumDatagramLength()
NWEndpoint
getResolvedEndpoint()
NWUDPSessionState
getState()
boolean
hasBetterPath()
protected long
init(NWUDPSession session)
boolean
isViable()
void
setReadHandler(org.robovm.objc.block.VoidBlock2<NSArray<NSData>,NSError> handler, long maxDatagrams)
void
tryNextResolvedEndpoint()
void
writeDatagram(NSData datagram, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
void
writeMultipleDatagrams(NSArray<NSData> datagramArray, org.robovm.objc.block.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, willChangeValues
-
-
-
-
Constructor Detail
-
NWUDPSession
public NWUDPSession()
-
NWUDPSession
protected NWUDPSession(NSObject.Handle h, long handle)
-
NWUDPSession
protected NWUDPSession(NSObject.SkipInit skipInit)
-
NWUDPSession
public NWUDPSession(NWUDPSession session)
- Since:
- Available in iOS 9.0 and later.
-
-
Method Detail
-
getState
public NWUDPSessionState getState()
- Since:
- Available in iOS 9.0 and later.
-
getEndpoint
public NWEndpoint getEndpoint()
- Since:
- Available in iOS 9.0 and later.
-
getResolvedEndpoint
public NWEndpoint 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
public NWPath getCurrentPath()
- Since:
- Available in iOS 9.0 and later.
-
getMaximumDatagramLength
public long getMaximumDatagramLength()
- Since:
- Available in iOS 9.0 and later.
-
init
protected long init(NWUDPSession session)
- Since:
- Available in iOS 9.0 and later.
-
tryNextResolvedEndpoint
public void tryNextResolvedEndpoint()
- Since:
- Available in iOS 9.0 and later.
-
setReadHandler
public void setReadHandler(org.robovm.objc.block.VoidBlock2<NSArray<NSData>,NSError> handler, long maxDatagrams)
- Since:
- Available in iOS 9.0 and later.
-
writeMultipleDatagrams
public void writeMultipleDatagrams(NSArray<NSData> datagramArray, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
- Since:
- Available in iOS 9.0 and later.
-
writeDatagram
public void writeDatagram(NSData datagram, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
- Since:
- Available in iOS 9.0 and later.
-
cancel
public void cancel()
- Since:
- Available in iOS 9.0 and later.
-
-