Class NSValue

    • Constructor Detail

      • NSValue

        protected NSValue​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static NSValue alloc()
      • allocWithZone

        public static NSValue allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • new_objc

        public static NSValue new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • valueWithObjCType

        @NotNull
        public static @NotNull NSValue valueWithObjCType​(@NotNull
                                                         @NotNull org.moe.natj.general.ptr.ConstVoidPtr value,
                                                         @NotNull
                                                         @NotNull java.lang.String type)
      • valueWithBytesObjCType

        @NotNull
        public static @NotNull NSValue valueWithBytesObjCType​(@NotNull
                                                              @NotNull org.moe.natj.general.ptr.ConstVoidPtr value,
                                                              @NotNull
                                                              @NotNull java.lang.String type)
      • valueWithCATransform3D

        @NotNull
        public static @NotNull NSValue valueWithCATransform3D​(CATransform3D t)
      • valueWithCGAffineTransform

        @NotNull
        public static @NotNull NSValue valueWithCGAffineTransform​(CGAffineTransform transform)
      • valueWithCGPoint

        @NotNull
        public static @NotNull NSValue valueWithCGPoint​(CGPoint point)
      • valueWithCGRect

        @NotNull
        public static @NotNull NSValue valueWithCGRect​(CGRect rect)
      • valueWithCGSize

        @NotNull
        public static @NotNull NSValue valueWithCGSize​(CGSize size)
      • valueWithCGVector

        @NotNull
        public static @NotNull NSValue valueWithCGVector​(CGVector vector)
      • valueWithCMTime

        @NotNull
        public static @NotNull NSValue valueWithCMTime​(CMTime time)
        API-Since: 4.0
      • valueWithCMTimeMapping

        @NotNull
        public static @NotNull NSValue valueWithCMTimeMapping​(CMTimeMapping timeMapping)
        API-Since: 4.0
      • valueWithCMTimeRange

        @NotNull
        public static @NotNull NSValue valueWithCMTimeRange​(CMTimeRange timeRange)
        API-Since: 4.0
      • valueWithMKCoordinateSpan

        @NotNull
        public static @NotNull NSValue valueWithMKCoordinateSpan​(MKCoordinateSpan span)
      • valueWithNonretainedObject

        @NotNull
        public static @NotNull NSValue valueWithNonretainedObject​(@Nullable
                                                                  @Nullable java.lang.Object anObject)
      • valueWithPointer

        @NotNull
        public static @NotNull NSValue valueWithPointer​(@Nullable
                                                        @Nullable org.moe.natj.general.ptr.ConstVoidPtr pointer)
      • valueWithRange

        @NotNull
        public static @NotNull NSValue valueWithRange​(NSRange range)
      • valueWithSCNMatrix4

        @NotNull
        public static @NotNull NSValue valueWithSCNMatrix4​(SCNMatrix4 v)
      • valueWithSCNVector3

        @NotNull
        public static @NotNull NSValue valueWithSCNVector3​(SCNVector3 v)
      • valueWithSCNVector4

        @NotNull
        public static @NotNull NSValue valueWithSCNVector4​(SCNVector4 v)
      • valueWithUIEdgeInsets

        @NotNull
        public static @NotNull NSValue valueWithUIEdgeInsets​(UIEdgeInsets insets)
      • valueWithUIOffset

        @NotNull
        public static @NotNull NSValue valueWithUIOffset​(UIOffset insets)
        API-Since: 5.0
      • version_static

        public static long version_static()
      • CGPointValue

        public CGPoint CGPointValue()
      • CGRectValue

        public CGRect CGRectValue()
      • CGSizeValue

        public CGSize CGSizeValue()
      • CGVectorValue

        public CGVector CGVectorValue()
      • CMTimeMappingValue

        public CMTimeMapping CMTimeMappingValue()
        API-Since: 4.0
      • CMTimeRangeValue

        public CMTimeRange CMTimeRangeValue()
        API-Since: 4.0
      • CMTimeValue

        public CMTime CMTimeValue()
        API-Since: 4.0
      • SCNMatrix4Value

        public SCNMatrix4 SCNMatrix4Value()
      • SCNVector3Value

        public SCNVector3 SCNVector3Value()
      • SCNVector4Value

        public SCNVector4 SCNVector4Value()
      • UIEdgeInsetsValue

        public UIEdgeInsets UIEdgeInsetsValue()
      • UIOffsetValue

        public UIOffset UIOffsetValue()
        API-Since: 5.0
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • getValue

        @Deprecated
        public void getValue​(@NotNull
                             @NotNull org.moe.natj.general.ptr.VoidPtr value)
        Deprecated.
        This method is unsafe because it could potentially cause buffer overruns. You should use -getValue:size: instead. API-Since: 2.0 Deprecated-Since: 100000.0
      • initWithBytesObjCType

        public NSValue initWithBytesObjCType​(@NotNull
                                             @NotNull org.moe.natj.general.ptr.ConstVoidPtr value,
                                             @NotNull
                                             @NotNull java.lang.String type)
      • isEqualToValue

        public boolean isEqualToValue​(@NotNull
                                      @NotNull NSValue value)
      • nonretainedObjectValue

        @Nullable
        public @Nullable java.lang.Object nonretainedObjectValue()
      • objCType

        @NotNull
        public @NotNull java.lang.String objCType()
      • pointerValue

        @Nullable
        public @Nullable org.moe.natj.general.ptr.VoidPtr pointerValue()
      • rangeValue

        public NSRange rangeValue()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • getValueSize

        public void getValueSize​(@NotNull
                                 @NotNull org.moe.natj.general.ptr.VoidPtr value,
                                 long size)
        API-Since: 11.0
      • valueWithDirectionalEdgeInsets

        @NotNull
        public static @NotNull NSValue valueWithDirectionalEdgeInsets​(NSDirectionalEdgeInsets insets)
        API-Since: 11.0
      • CMVideoDimensionsValue

        public CMVideoDimensions CMVideoDimensionsValue()
        [@property] CMVideoDimensionsValue Returns the CMVideoDimensions struct encoded by this object. This property simplifies accessing the contents of AVCaptureDeviceFormat.supportedMaxPhotoDimensions which are CMVideoDimension struct values encoded in NSValue objects. API-Since: 16.0
      • valueWithCMVideoDimensions

        public static NSValue valueWithCMVideoDimensions​(CMVideoDimensions dimensions)
        valueWithCMVideoDimensions Creates a NSValue object encoding a CMVideoDimensions struct value. This extension simplifies converting CMVideoDimensions struct values into NSValue objects. API-Since: 16.0
        Parameters:
        dimensions - The CMVideoDimensions struct to encode.
        Returns:
        An NSValue object encoding the provided dimensions.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.