DataAttributes
public class DataAttributes : DataAttributesBase
extension DataAttributes: NativeBase
extension DataAttributes: Hashable
Data attributes collection.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
Returns a list of attribute names.
Declaration
Swift
public func getAttributeNames() -> [String]Return Value
The list of attribute names.
-
Returns the value type of an attribute or
nilif it is not contained.Declaration
Swift
public func getValueType(_ name: String) -> DataAttributeValue.ValueType?Parameters
nameAttribute name.
Return Value
Attribute value type or
nilif it is not contained. -
Gets the value of an attribute as a string or
nilif it is not contained.Declaration
Swift
public func getAsString(_ name: String) -> String?Parameters
nameAttribute name.
Return Value
Attribute value.
-
Gets the value of a string attribute or
nilif it is not contained or the type doesn’t match.Declaration
Swift
public func getString(_ name: String) -> String?Parameters
nameAttribute name.
Return Value
Attribute value.
-
Gets the value of a 64-bits integer attribute or
nilif it is not contained or the type doesn’t match.Declaration
Swift
public func getInt64(_ name: String) -> Int64?Parameters
nameAttribute name.
Return Value
Attribute value.
-
Gets the value of a single precision floating decimal attribute or
nilif it is not contained or the type doesn’t match.Declaration
Swift
public func getFloat(_ name: String) -> Float?Parameters
nameAttribute name.
Return Value
Attribute value.
-
Gets the value of a double precision floating decimal attribute or
nilif it is not contained or the type doesn’t match.Declaration
Swift
public func getDouble(_ name: String) -> Double?Parameters
nameAttribute name.
Return Value
Attribute value.
-
Gets the value of a boolean attribute or
nilif it is not contained or the type doesn’t match.Declaration
Swift
public func getBoolean(_ name: String) -> Bool?Parameters
nameAttribute name.
Return Value
Attribute value.
-
Gets the DataAttributeValue or
nilif it is not contained.Declaration
Swift
public func getValue(_ name: String) -> DataAttributeValue?Parameters
nameAttribute name.
Return Value
Attribute value.