Package apple.uikit

Class UIPasteboard

  • All Implemented Interfaces:
    NSObject

    public class UIPasteboard
    extends NSObject
    API-Since: 3.0
    • Constructor Detail

      • UIPasteboard

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIPasteboard 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()
      • generalPasteboard

        @NotNull
        public static @NotNull UIPasteboard generalPasteboard()
      • 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)
      • pasteboardWithNameCreate

        @Nullable
        public static @Nullable UIPasteboard pasteboardWithNameCreate​(@NotNull
                                                                      @NotNull java.lang.String pasteboardName,
                                                                      boolean create)
      • pasteboardWithUniqueName

        @NotNull
        public static @NotNull UIPasteboard pasteboardWithUniqueName()
      • removePasteboardWithName

        public static void removePasteboardWithName​(@NotNull
                                                    @NotNull java.lang.String pasteboardName)
      • 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()
      • version_static

        public static long version_static()
      • URL

        @Nullable
        public @Nullable NSURL URL()
      • URLs

        @Nullable
        public @Nullable NSArray<? extends NSURL> URLs()
      • addItems

        public void addItems​(@NotNull
                             @NotNull NSArray<? extends NSDictionary<java.lang.String,​?>> items)
      • changeCount

        public long changeCount()
      • color

        @Nullable
        public @Nullable UIColor color()
      • colors

        @Nullable
        public @Nullable NSArray<? extends UIColor> colors()
      • containsPasteboardTypes

        public boolean containsPasteboardTypes​(@NotNull
                                               @NotNull NSArray<java.lang.String> pasteboardTypes)
      • containsPasteboardTypesInItemSet

        public boolean containsPasteboardTypesInItemSet​(@NotNull
                                                        @NotNull NSArray<java.lang.String> pasteboardTypes,
                                                        @Nullable
                                                        @Nullable NSIndexSet itemSet)
      • dataForPasteboardType

        @Nullable
        public @Nullable NSData dataForPasteboardType​(@NotNull
                                                      @NotNull java.lang.String pasteboardType)
      • dataForPasteboardTypeInItemSet

        @Nullable
        public @Nullable NSArray<? extends NSData> dataForPasteboardTypeInItemSet​(@NotNull
                                                                                  @NotNull java.lang.String pasteboardType,
                                                                                  @Nullable
                                                                                  @Nullable NSIndexSet itemSet)
      • hasColors

        public boolean hasColors()
        API-Since: 10.0
      • hasImages

        public boolean hasImages()
        API-Since: 10.0
      • hasStrings

        public boolean hasStrings()
        Queries API-Since: 10.0
      • hasURLs

        public boolean hasURLs()
        API-Since: 10.0
      • image

        @Nullable
        public @Nullable UIImage image()
      • images

        @Nullable
        public @Nullable NSArray<? extends UIImage> images()
      • isPersistent

        public boolean isPersistent()
      • setPersistent

        @Deprecated
        public void setPersistent​(boolean persistent)
        Deprecated.
        API-Since: 3.0 Deprecated-Since: 10.0 Deprecated-Message: Do not set persistence on pasteboards. This property is set automatically.
      • itemSetWithPasteboardTypes

        @Nullable
        public @Nullable NSIndexSet itemSetWithPasteboardTypes​(@NotNull
                                                               @NotNull NSArray<java.lang.String> pasteboardTypes)
      • items

        @NotNull
        public @NotNull NSArray<? extends NSDictionary<java.lang.String,​?>> items()
        Direct access
      • name

        @NotNull
        public @NotNull java.lang.String name()
      • numberOfItems

        public long numberOfItems()
        Multiple items
      • pasteboardTypes

        @NotNull
        public @NotNull NSArray<java.lang.String> pasteboardTypes()
        First item
      • pasteboardTypesForItemSet

        @Nullable
        public @Nullable NSArray<? extends NSArray<java.lang.String>> pasteboardTypesForItemSet​(@Nullable
                                                                                                @Nullable NSIndexSet itemSet)
      • setColor

        public void setColor​(@Nullable
                             @Nullable UIColor value)
      • setColors

        public void setColors​(@Nullable
                              @Nullable NSArray<? extends UIColor> value)
      • setDataForPasteboardType

        public void setDataForPasteboardType​(@NotNull
                                             @NotNull NSData data,
                                             @NotNull
                                             @NotNull java.lang.String pasteboardType)
      • setImage

        public void setImage​(@Nullable
                             @Nullable UIImage value)
      • setImages

        public void setImages​(@Nullable
                              @Nullable NSArray<? extends UIImage> value)
      • setItems

        public void setItems​(@NotNull
                             @NotNull NSArray<? extends NSDictionary<java.lang.String,​?>> value)
        Direct access
      • setItemsOptions

        public void setItemsOptions​(@NotNull
                                    @NotNull NSArray<? extends NSDictionary<java.lang.String,​?>> items,
                                    @NotNull
                                    @NotNull NSDictionary<java.lang.String,​?> options)
        API-Since: 10.0
      • setString

        public void setString​(@Nullable
                              @Nullable java.lang.String value)
      • setStrings

        public void setStrings​(@Nullable
                               @Nullable NSArray<java.lang.String> value)
      • setURL

        public void setURL​(@Nullable
                           @Nullable NSURL value)
      • setURLs

        public void setURLs​(@Nullable
                            @Nullable NSArray<? extends NSURL> value)
      • setValueForPasteboardType

        public void setValueForPasteboardType​(@NotNull
                                              @NotNull java.lang.Object value,
                                              @NotNull
                                              @NotNull java.lang.String pasteboardType)
      • string

        @Nullable
        public @Nullable java.lang.String string()
      • strings

        @Nullable
        public @Nullable NSArray<java.lang.String> strings()
      • valueForPasteboardType

        @Nullable
        public @Nullable java.lang.Object valueForPasteboardType​(@NotNull
                                                                 @NotNull java.lang.String pasteboardType)
      • valuesForPasteboardTypeInItemSet

        @Nullable
        public @Nullable NSArray<?> valuesForPasteboardTypeInItemSet​(@NotNull
                                                                     @NotNull java.lang.String pasteboardType,
                                                                     @Nullable
                                                                     @Nullable NSIndexSet itemSet)
      • itemProviders

        @NotNull
        public @NotNull NSArray<? extends NSItemProvider> itemProviders()
        Item provider interface API-Since: 11.0
      • setItemProviders

        public void setItemProviders​(@NotNull
                                     @NotNull NSArray<? extends NSItemProvider> value)
        Item provider interface API-Since: 11.0
      • setItemProvidersLocalOnlyExpirationDate

        public void setItemProvidersLocalOnlyExpirationDate​(@NotNull
                                                            @NotNull NSArray<? extends NSItemProvider> itemProviders,
                                                            boolean localOnly,
                                                            @Nullable
                                                            @Nullable NSDate expirationDate)
        API-Since: 11.0
      • setObjects

        public void setObjects​(@NotNull
                               @NotNull NSArray<?> objects)
        Automatically creates item providers wrapping the objects passed in. API-Since: 11.0
      • setObjectsLocalOnlyExpirationDate

        public void setObjectsLocalOnlyExpirationDate​(@NotNull
                                                      @NotNull NSArray<?> objects,
                                                      boolean localOnly,
                                                      @Nullable
                                                      @Nullable NSDate expirationDate)
        API-Since: 11.0
      • detectPatternsForPatternsCompletionHandler

        public void detectPatternsForPatternsCompletionHandler​(@NotNull
                                                               @NotNull NSSet<java.lang.String> patterns,
                                                               @NotNull
                                                               @NotNull UIPasteboard.Block_detectPatternsForPatternsCompletionHandler completionHandler)
        Detects patterns in the first pasteboard item.
        Parameters:
        patterns - Detect only these patterns.
        completionHandler - Receives which patterns were detected, or an error. API-Since: 14.0
      • detectPatternsForPatternsInItemSetCompletionHandler

        public void detectPatternsForPatternsInItemSetCompletionHandler​(@NotNull
                                                                        @NotNull NSSet<java.lang.String> patterns,
                                                                        @Nullable
                                                                        @Nullable NSIndexSet itemSet,
                                                                        @NotNull
                                                                        @NotNull UIPasteboard.Block_detectPatternsForPatternsInItemSetCompletionHandler completionHandler)
        Detects patterns in the specified pasteboard items.
        Parameters:
        patterns - Detect only these patterns.
        itemSet - Specifies which pasteboard items by their position. Nil means all items.
        completionHandler - Receives which patterns were detected per item specified, or an error. API-Since: 14.0
      • detectValuesForPatternsCompletionHandler

        public void detectValuesForPatternsCompletionHandler​(@NotNull
                                                             @NotNull NSSet<java.lang.String> patterns,
                                                             @NotNull
                                                             @NotNull UIPasteboard.Block_detectValuesForPatternsCompletionHandler completionHandler)
        Detects patterns and corresponding values in the first pasteboard item.
        Parameters:
        patterns - Detect only these patterns.
        completionHandler - Receives which patterns and values were detected, or an error. API-Since: 14.0
      • detectValuesForPatternsInItemSetCompletionHandler

        public void detectValuesForPatternsInItemSetCompletionHandler​(@NotNull
                                                                      @NotNull NSSet<java.lang.String> patterns,
                                                                      @Nullable
                                                                      @Nullable NSIndexSet itemSet,
                                                                      @NotNull
                                                                      @NotNull UIPasteboard.Block_detectValuesForPatternsInItemSetCompletionHandler completionHandler)
        Detects patterns and corresponding values in the specified pasteboard items.
        Parameters:
        patterns - Detect only these patterns.
        itemSet - Specifies which pasteboard items by their position. Nil means all items.
        completionHandler - Receives which patterns and values were detected per item specified, or an error. API-Since: 14.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.