Foundation · IOS API REFERENCE
Formatter
class · SDK 27.1
class Formatter
Members (6)
methodattributedString
TypeScriptattributedString(obj: unknown, attrs?: (NativeMap<NSAttributedString_Key, unknown>) | null): (NSAttributedString) | null
Swift declarationfunc attributedString(for obj: Any, withDefaultAttributes attrs: [NSAttributedString.Key : Any]? = nil) -> NSAttributedString?
methodeditingString
TypeScripteditingString(obj: unknown): (string) | null
Swift declarationfunc editingString(for obj: Any) -> String?
methodgetObjectValue
TypeScriptgetObjectValue(string: string): { $ret: boolean; $out: { "obj": (unknown) | null; "error": (NSString) | null } }
Swift declarationfunc getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool
Omit the output parameters from the call. The result contains $ret and $out, with obj, error inside $out.
initinit
TypeScriptstatic init(): Formatter
Swift declarationinit()
methodisPartialStringValid
TypeScriptisPartialStringValid(partialString: string): { $ret: boolean; $out: { "newString": (NSString) | null; "error": (NSString) | null } }
Swift declarationfunc isPartialStringValid(_ partialString: String, newEditingString newString: AutoreleasingUnsafeMutablePointer<NSString?>?, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool
Omit the output parameters from the call. The result contains $ret and $out, with newString, error inside $out.
methodstring
TypeScriptstring(obj?: (unknown) | null): (string) | null
Swift declarationfunc string(for obj: Any?) -> String?
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
Formatter.isPartialStringValid(_:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:)
The iOS SDK compiler rejected this binding: cannot convert value of type 'Bool' to specified type 'NSString'
All Foundation types →