Package apple.uikit

Class UIPasteboard

  • All Implemented Interfaces:
    NSObject

    public class UIPasteboard
    extends NSObject
    • Constructor Detail

      • UIPasteboard

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        public static 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

        public static 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

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

        public static java.lang.Object new_objc()
      • pasteboardWithNameCreate

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

        public static UIPasteboard pasteboardWithUniqueName()
      • removePasteboardWithName

        public static void removePasteboardWithName​(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

        public NSURL URL()
      • addItems

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

        public long changeCount()
      • containsPasteboardTypes

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

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

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

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

        public boolean hasColors()
      • hasImages

        public boolean hasImages()
      • hasStrings

        public boolean hasStrings()
        Queries
      • hasURLs

        public boolean hasURLs()
      • isPersistent

        public boolean isPersistent()
      • setPersistent

        public void setPersistent​(boolean persistent)
      • itemSetWithPasteboardTypes

        public NSIndexSet itemSetWithPasteboardTypes​(NSArray<java.lang.String> pasteboardTypes)
      • name

        public java.lang.String name()
      • numberOfItems

        public long numberOfItems()
        Multiple items
      • pasteboardTypes

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

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

        public void setColor​(UIColor value)
      • setColors

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

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

        public void setImage​(UIImage value)
      • setImages

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

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

        public void setItemsOptions​(NSArray<? extends NSDictionary<java.lang.String,​?>> items,
                                    NSDictionary<java.lang.String,​?> options)
      • setString

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

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

        public void setURL​(NSURL value)
      • setURLs

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

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

        public java.lang.String string()
      • strings

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

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

        public NSArray<?> valuesForPasteboardTypeInItemSet​(java.lang.String pasteboardType,
                                                           NSIndexSet itemSet)
      • setItemProviders

        public void setItemProviders​(NSArray<? extends NSItemProvider> value)
        Item provider interface
      • setItemProvidersLocalOnlyExpirationDate

        public void setItemProvidersLocalOnlyExpirationDate​(NSArray<? extends NSItemProvider> itemProviders,
                                                            boolean localOnly,
                                                            NSDate expirationDate)
      • setObjects

        public void setObjects​(NSArray<?> objects)
        Automatically creates item providers wrapping the objects passed in.
      • setObjectsLocalOnlyExpirationDate

        public void setObjectsLocalOnlyExpirationDate​(NSArray<?> objects,
                                                      boolean localOnly,
                                                      NSDate expirationDate)
      • detectPatternsForPatternsCompletionHandler

        public void detectPatternsForPatternsCompletionHandler​(NSSet<java.lang.String> patterns,
                                                               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.
      • detectPatternsForPatternsInItemSetCompletionHandler

        public void detectPatternsForPatternsInItemSetCompletionHandler​(NSSet<java.lang.String> patterns,
                                                                        NSIndexSet itemSet,
                                                                        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.
      • detectValuesForPatternsCompletionHandler

        public void detectValuesForPatternsCompletionHandler​(NSSet<java.lang.String> patterns,
                                                             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.
      • detectValuesForPatternsInItemSetCompletionHandler

        public void detectValuesForPatternsInItemSetCompletionHandler​(NSSet<java.lang.String> patterns,
                                                                      NSIndexSet itemSet,
                                                                      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.