public class NFCNDEFPayload extends NSObject implements NSSecureCoding
A NDEF message payload consists of Type Name Format, Type, Payload Identifier, and Payload data. The NDEF payload cannot result into a record that is greater than 128KB in size.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NFCNDEFPayload(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static NFCNDEFPayload |
alloc() |
static NFCNDEFPayload |
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 java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
static long |
hash_static() |
NSData |
identifier() |
NFCNDEFPayload |
init() |
NFCNDEFPayload |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NFCNDEFPayload |
initWithFormatTypeIdentifierPayload(byte format,
NSData type,
NSData identifier,
NSData payload)
initWithFormat:type:identifier:paylaod:
|
NFCNDEFPayload |
initWithFormatTypeIdentifierPayloadChunkSize(byte format,
NSData type,
NSData identifier,
NSData payload,
long chunkSize)
initWithFormat:type:identifier:paylaod:
|
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) |
static NFCNDEFPayload |
new_objc() |
NSData |
payload() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setIdentifier(NSData value) |
void |
setPayload(NSData value) |
void |
setType(NSData value) |
void |
setTypeNameFormat(byte value) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSData |
type() |
byte |
typeNameFormat() |
static long |
version_static() |
java.lang.String |
wellKnownTypeTextPayloadWithLocale(org.moe.natj.general.ptr.Ptr<NSLocale> locale)
wellKnownTypeTextPayloadWithLocale:
|
static NFCNDEFPayload |
wellKnownTypeTextPayloadWithStringLocale(java.lang.String text,
NSLocale locale)
wellKnownTypeTextPayloadWithString:locale:
|
NSURL |
wellKnownTypeURIPayload()
wellKnownTypeURIPayload
|
static NFCNDEFPayload |
wellKnownTypeURIPayloadWithString(java.lang.String uri)
wellKnownTypeURIRecordWithString:
|
static NFCNDEFPayload |
wellKnownTypeURIPayloadWithURL(NSURL url)
wellKnownTypeURIPayloadWithURL:
|
static NFCNDEFPayload |
wellKnowTypeTextPayloadWithStringLocale(java.lang.String text,
NSLocale locale) |
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 NFCNDEFPayload alloc()
public static NFCNDEFPayload 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 java.lang.String debugDescription_static()
public static java.lang.String description_static()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic static long hash_static()
public NSData identifier()
public NFCNDEFPayload init()
public NFCNDEFPayload initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NFCNDEFPayload initWithFormatTypeIdentifierPayload(byte format, NSData type, NSData identifier, NSData payload)
format - NFCTypeNameFormat value.type - Identifier describing the type of the payload. Empty data indicates field is absent from the payload.identifier - Identifier in the form of a URI reference. Empty data indicates field is absent from the payload.payload - Payload data. Empty data indicates field is absent from the payload.
This initializer uses the maximum payload chunk size defined by the NFC NDEF specification, i.e. 2^32-1 octets.
public NFCNDEFPayload initWithFormatTypeIdentifierPayloadChunkSize(byte format, NSData type, NSData identifier, NSData payload, long chunkSize)
format - NFCTypeNameFormat value.type - Identifier describing the type of the payload. Empty data indicates field is absent from the payload.identifier - Identifier in the form of a URI reference. Empty data indicates field is absent from the payload.payload - Payload data. Empty data indicates field is absent from the payload.chunkSize - Maximum size of a payload chunk. 0 means no chunking on the payload, i.e. payload is fit in a single record.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 NFCNDEFPayload new_objc()
public NSData payload()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setIdentifier(NSData value)
public void setPayload(NSData value)
public void setType(NSData value)
public void setTypeNameFormat(byte value)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic NSData type()
public byte typeNameFormat()
public static long version_static()
public static NFCNDEFPayload wellKnowTypeTextPayloadWithStringLocale(java.lang.String text, NSLocale locale)
public java.lang.String wellKnownTypeTextPayloadWithLocale(org.moe.natj.general.ptr.Ptr<NSLocale> locale)
locale - Returns NSLocale object that is constructed from the IANA language code stored with the text payload.public static NFCNDEFPayload wellKnownTypeTextPayloadWithStringLocale(java.lang.String text, NSLocale locale)
text - Text message.locale - NSLocale object. IANA language code specified by the locale will be saved with the payload.public NSURL wellKnownTypeURIPayload()
public static NFCNDEFPayload wellKnownTypeURIPayloadWithString(java.lang.String uri)
Used for creating NDEF URI payloads which cannot be represented with NSURL object. These are URIs that contain characters such as 'ä' and 'ö' which cannot be represent by the 7 bits ASCII encoding.
uri - URI string. UTF-8 encoding representation will be used.public static NFCNDEFPayload wellKnownTypeURIPayloadWithURL(NSURL url)
Preferred convenience function for creating NDEF URI payload with common URLs such as "https://www.apple.com" or "tel:+1-555-555-5555".
url - NSURL object.