Package apple.uikit

Class UIPrinter

  • All Implemented Interfaces:
    NSObject

    public class UIPrinter
    extends NSObject
    API-Since: 8.0
    • Constructor Detail

      • UIPrinter

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIPrinter 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 UIPrinter new_objc()
      • printerWithURL

        @NotNull
        public static @NotNull UIPrinter printerWithURL​(@NotNull
                                                        @NotNull NSURL url)
        printerWithURL: Create a printer from its URL This method creates a new printer object from the printer's URL. A UIPrinter object is returned even if the printer is not available on the network.
      • 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

        @NotNull
        public @NotNull NSURL URL()
        Return the URL of the printer. This method returns the full URL of the printer which can be used in future calls to printerWithURL to access the same printer.
      • contactPrinter

        public void contactPrinter​(@Nullable
                                   @Nullable UIPrinter.Block_contactPrinter completionHandler)
        contactPrinter: Check if printer is reachable, and update printer information. This method checks to see if this printer is available on the network, and sets the displayName, displayLocation, supportedJobTypes, makeAndModel, supportsColor, and supportsDuplex for the printer. The operation can take up to 30 seconds.
      • displayLocation

        @Nullable
        public @Nullable java.lang.String displayLocation()
        Return a human-readable location. This method returns the printer's location. This is human-readable text that usually appears in the UI below the printer's name (such as "Front Office"). Returns nil if the printer doesn't have a location string. This property's value is undefined until contactPrinter: has been called and completed successfully.
      • displayName

        @NotNull
        public @NotNull java.lang.String displayName()
        Return a human-readable printer name. This method returns the printer name suitable for displaying in the UI.
      • makeAndModel

        @Nullable
        public @Nullable java.lang.String makeAndModel()
        Return make (manufacturer) and model of the printer. This method returns the make and model of the printer, which is usually the manufacturer, model, and model number. This property's value is undefined until contactPrinter: has been called and completed successfully.
      • supportedJobTypes

        public long supportedJobTypes()
        Returns the supported job types of this printer. This method returns a mask with all the UIPrinterJobTypes values that the printer supports. This property's value is undefined until contactPrinter: has been called and completed successfully.
      • supportsColor

        public boolean supportsColor()
        Return whether this printer supports color printing. This method returns YES if the printer supports full color printing, NO otherwise. This property's value is undefined until contactPrinter: has been called and completed successfully.
      • supportsDuplex

        public boolean supportsDuplex()
        Return whether this printer supports duplex (double-sided) printing. This method returns YES if the printer supports duplex (double-sided) printing, NO otherwise. This property's value is undefined until contactPrinter: has been called and completed successfully.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.