@MarshalsPointer public static CTAttributedStringAttributes toObject(Class<CTAttributedStringAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTAttributedStringAttributes(o); } @MarshalsPointer
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributes(long loc, CFRange effectiveRange) { CFDictionary dict = getAttributesDictionary(loc, effectiveRange); if (dict == null) return null; return new CTAttributedStringAttributes(null); } /*<methods>*/
/** * @since Available in iOS 6.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getTypingCoreTextAttributes() { NSDictionary<NSString, ?> dict = getTypingAttributesDictionary(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /**
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributesForNull() { NSDictionary dict = getTextAttributesDictionaryForNull(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } @WeaklyLinked
/** * @since Available in iOS 5.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getTitleCoreTextAttributes() { NSDictionary dict = getTitleTextAttributesDictionary(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getLinkCoreTextAttributes() { NSDictionary<NSString, ?> dict = getLinkTextAttributesDictionary(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /**
/** * @since Available in iOS 6.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getTypingCoreTextAttributes() { NSDictionary<NSString, ?> dict = getTypingAttributesDictionary(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /**
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributesForZero() { NSDictionary dict = getTextAttributesDictionaryForZero(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } @WeaklyLinked
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributesForPositiveInfinity() { NSDictionary dict = getTextAttributesDictionaryForPositiveInfinity(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } @WeaklyLinked
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributesForNegativeInfinity() { NSDictionary dict = getTextAttributesDictionaryForNegativeInfinity(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } @WeaklyLinked
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getDefaultCoreTextAttributes() { NSDictionary<NSString, ?> dict = getDefaultTextAttributesDictionary(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /**
/** * @since Available in iOS 5.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getTitleCoreTextAttributes(UIControlState state) { NSDictionary<NSString, ?> dict = getTitleTextAttributesDictionary(state); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /*<methods>*/
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributes(long location, NSRange range) { return new CTAttributedStringAttributes(getAttributesDictionary(location, range).as(CFDictionary.class)); } @WeaklyLinked
/** * @since Available in iOS 5.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getTitleCoreTextAttributes(UIControlState state) { NSDictionary dict = getTitleTextAttributesDictionary(state); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /*<methods>*/
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributes(long location, NSRange range, NSRange rangeLimit) { return new CTAttributedStringAttributes(getAttributesDictionary(location, range, rangeLimit).as(CFDictionary.class)); }
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributesForPositiveValues() { NSDictionary dict = getTextAttributesDictionaryForPositiveValues(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } @WeaklyLinked
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributesForNaN() { NSDictionary dict = getTextAttributesDictionaryForNaN(); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } @WeaklyLinked
@WeaklyLinked public CTAttributedStringAttributes getCoreTextAttributesForNegativeValues() { NSDictionary dict = getTextAttributesDictionaryForNegativeValues(); if (dict == null) { return null; } return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } @WeaklyLinked
public CTAttributedStringAttributes getCoreTextAttributes() { NSDictionary dict = getAttributesDictionary(); if (dict == null) return null; return new CTAttributedStringAttributes(getAttributesDictionary().as(CFDictionary.class)); }
/** * @since Available in iOS 5.0 and later. */ @WeaklyLinked public CTAttributedStringAttributes getScopeBarButtonTitleCoreTextAttributes(UIControlState state) { NSDictionary<NSString, ?> dict = getScopeBarButtonTitleTextAttributesDictionary(state); if (dict == null) return null; return new CTAttributedStringAttributes(dict.as(CFDictionary.class)); } /*<methods>*/