/** * @since Available in iOS 5.0 and later. */ public NSAttributedStringAttributes getTitleTextAttributes(UIControlState state) { NSDictionary<NSString, ?> dict = getTitleTextAttributesDictionary(state); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes getTypingAttributes() { NSDictionary<NSString, ?> dict = getTypingAttributesDictionary(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } /**
/** * @since Available in iOS 5.0 and later. */ public NSAttributedStringAttributes getTitleTextAttributes(UIControlState state) { NSDictionary dict = getTitleTextAttributesDictionary(state); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } /**
/** * @since Available in iOS 6.0 and later. */ public NSAttributedStringAttributes getTypingAttributes() { NSDictionary<NSString, ?> dict = getTypingAttributesDictionary(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } /**
/** * @since Available in iOS 5.0 and later. */ public NSAttributedStringAttributes getScopeBarButtonTitleTextAttributes(UIControlState state) { NSDictionary<NSString, ?> dict = getScopeBarButtonTitleTextAttributesDictionary(state); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } /**
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes getDefaultTextAttributes() { NSDictionary<NSString, ?> dict = getDefaultTextAttributesDictionary(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } /**
/** * @since Available in iOS 5.0 and later. */ public NSAttributedStringAttributes getTitleTextAttributes() { NSDictionary dict = getTitleTextAttributesDictionary(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } /**
@WeaklyLinked public NSAttributedStringAttributes getAttributes() { NSDictionary dict = getAttributesDictionary(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
/** * @since Available in iOS 7.0 and later. */ public NSAttributedStringAttributes getDefaultAttributes() { if (has(NSAttributedStringDocumentAttribute.DefaultAttributes)) { NSDictionary val = (NSDictionary) get(NSAttributedStringDocumentAttribute.DefaultAttributes); return new NSAttributedStringAttributes(val); } return null; } /**
@WeaklyLinked public NSAttributedStringAttributes getTextAttributesForPositiveInfinity() { NSDictionary dict = getTextAttributesDictionaryForPositiveInfinity(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getTextAttributesForNegativeValues() { NSDictionary dict = getTextAttributesDictionaryForNegativeValues(); if (dict == null) { return null; } return new NSAttributedStringAttributes(dict); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getTextAttributesForPositiveValues() { NSDictionary dict = getTextAttributesDictionaryForPositiveValues(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getTextAttributesForZero() { NSDictionary dict = getTextAttributesDictionaryForZero(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getTextAttributesForNaN() { NSDictionary dict = getTextAttributesDictionaryForNaN(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getAttributes(long location, NSRange range) { return new NSAttributedStringAttributes(getAttributesDictionary(location, range)); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getAttributes(long location, NSRange range, NSRange rangeLimit) { return new NSAttributedStringAttributes(getAttributesDictionary(location, range, rangeLimit)); } @WeaklyLinked
@MarshalsPointer public static NSAttributedStringAttributes toObject(Class<NSAttributedStringAttributes> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSAttributedStringAttributes(o); } @MarshalsPointer
@WeaklyLinked public NSAttributedStringAttributes getTextAttributesForNull() { NSDictionary dict = getTextAttributesDictionaryForNull(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getTextAttributesForNegativeInfinity() { NSDictionary dict = getTextAttributesDictionaryForNegativeInfinity(); if (dict == null) return null; return new NSAttributedStringAttributes(dict); } @WeaklyLinked
@WeaklyLinked public NSAttributedStringAttributes getAttributes(long loc, CFRange effectiveRange) { CFDictionary dict = getAttributesDictionary(loc, effectiveRange); if (dict == null) return null; return new NSAttributedStringAttributes(dict.as(NSDictionary.class)); } @WeaklyLinked