NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSNetService(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
NSArray<? extends NSData> |
addresses()
The addresses of the service.
|
static NSNetService |
alloc() |
static NSNetService |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static NSData |
dataFromTXTRecordDictionary(NSDictionary<java.lang.String,? extends NSData> txtDictionary)
Returns an NSData created from the provided dictionary.
|
static java.lang.String |
debugDescription_static() |
NSNetServiceDelegate |
delegate()
Set a delegate to receive publish, resolve, or monitor events.
|
static java.lang.String |
description_static() |
static NSDictionary<java.lang.String,? extends NSData> |
dictionaryFromTXTRecordData(NSData txtData)
Returns an NSDictionary created from the provided NSData.
|
java.lang.String |
domain()
Returns the domain of the discovered or published service.
|
boolean |
getInputStreamOutputStream(org.moe.natj.general.ptr.Ptr<NSInputStream> inputStream,
org.moe.natj.general.ptr.Ptr<NSOutputStream> outputStream)
Retrieves streams from the NSNetService instance.
|
static long |
hash_static() |
java.lang.String |
hostName()
Returns the DNS host name of the computer hosting the discovered or published service.
|
boolean |
includesPeerToPeer()
Initially set to NO.
|
NSNetService |
init() |
NSNetService |
initWithDomainTypeName(java.lang.String domain,
java.lang.String type,
java.lang.String name)
This is the initializer for resolution.
|
NSNetService |
initWithDomainTypeNamePort(java.lang.String domain,
java.lang.String type,
java.lang.String name,
int port)
This is the initializer for publishing.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
name()
Returns the name of the discovered or published service.
|
static NSNetService |
new_objc() |
long |
port()
The port of a resolved service.
|
void |
publish()
Advertises a given service on the network.
|
void |
publishWithOptions(long options)
Advertises a given service on the network.
|
void |
removeFromRunLoopForMode(NSRunLoop aRunLoop,
java.lang.String mode) |
void |
resolve()
Deprecated.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
resolveWithTimeout(double timeout)
Starts a resolve for the NSNetService instance of the specified duration.
|
void |
scheduleInRunLoopForMode(NSRunLoop aRunLoop,
java.lang.String mode)
NSNetService instances may be scheduled on NSRunLoops to operate in different modes, or in other threads.
|
void |
setDelegate_unsafe(NSNetServiceDelegate value)
Set a delegate to receive publish, resolve, or monitor events.
|
void |
setDelegate(NSNetServiceDelegate value)
Set a delegate to receive publish, resolve, or monitor events.
|
void |
setIncludesPeerToPeer(boolean value)
Initially set to NO.
|
boolean |
setTXTRecordData(NSData recordData)
Sets the TXT record of the NSNetService instance that has been or will be published.
|
static void |
setVersion_static(long aVersion) |
void |
startMonitoring()
Starts monitoring the NSNetService instance for events.
|
void |
stop()
Halts a service which is either publishing or resolving.
|
void |
stopMonitoring()
Stops monitoring the NSNetService instance for events.
|
static org.moe.natj.objc.Class |
superclass_static() |
NSData |
TXTRecordData()
Returns the raw TXT record of the NSNetService instance.
|
java.lang.String |
type()
Returns the type of the discovered or published service.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSNetService alloc()
public static NSNetService allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static NSData dataFromTXTRecordDictionary(NSDictionary<java.lang.String,? extends NSData> txtDictionary)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static NSDictionary<java.lang.String,? extends NSData> dictionaryFromTXTRecordData(NSData txtData)
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSNetService new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public NSData TXTRecordData()
public NSArray<? extends NSData> addresses()
public NSNetServiceDelegate delegate()
public java.lang.String domain()
public boolean getInputStreamOutputStream(org.moe.natj.general.ptr.Ptr<NSInputStream> inputStream, org.moe.natj.general.ptr.Ptr<NSOutputStream> outputStream)
public java.lang.String hostName()
public boolean includesPeerToPeer()
public NSNetService init()
public NSNetService initWithDomainTypeName(java.lang.String domain, java.lang.String type, java.lang.String name)
If publish: is called on an NSNetService instance initialized with this method, an NSNetServicesBadArgumentError will be sent in the error dictionary to the delegate's netService:didNotPublish: method.
public NSNetService initWithDomainTypeNamePort(java.lang.String domain, java.lang.String type, java.lang.String name, int port)
public java.lang.String name()
public long port()
public void publish()
If the name of the service is the default name (@""), then the service will be renamed automatically. If the name of the service has been specified, then the service will not be renamed automatically. If more control over renaming is required, then -[NSNetService publishWithOptions:] is available.
public void publishWithOptions(long options)
See the notes above for NSNetServiceNoAutoRename for information about controlling the auto-renaming behavior using this method.
public void removeFromRunLoopForMode(NSRunLoop aRunLoop, java.lang.String mode)
@Deprecated public void resolve()
public void resolveWithTimeout(double timeout)
public void scheduleInRunLoopForMode(NSRunLoop aRunLoop, java.lang.String mode)
public void setDelegate_unsafe(NSNetServiceDelegate value)
public void setDelegate(NSNetServiceDelegate value)
public void setIncludesPeerToPeer(boolean value)
public boolean setTXTRecordData(NSData recordData)
public void startMonitoring()
public void stop()
public void stopMonitoring()
public java.lang.String type()