DataAttributesBuilder

public class DataAttributesBuilder
extension DataAttributesBuilder: NativeBase
extension DataAttributesBuilder: Hashable

Data attributes collection builder.

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.

  • Creates a data attributes builder instance.

    Declaration

    Swift

    public init()
  • Configures the builder to add the given attribute.

    Declaration

    Swift

    public func with(name: String, value: String) -> DataAttributesBuilder

    Parameters

    name

    Attribute name.

    value

    Attribute value.

    Return Value

    This data attributes builder instance.

  • Configures the builder to add the given attribute.

    Declaration

    Swift

    public func with(name: String, value: Int64) -> DataAttributesBuilder

    Parameters

    name

    Attribute name.

    value

    Attribute value.

    Return Value

    This data attributes builder instance.

  • Configures the builder to add the given attribute.

    Declaration

    Swift

    public func with(name: String, value: Float) -> DataAttributesBuilder

    Parameters

    name

    Attribute name.

    value

    Attribute value.

    Return Value

    This data attributes builder instance.

  • Configures the builder to add the given attribute.

    Declaration

    Swift

    public func with(name: String, value: Double) -> DataAttributesBuilder

    Parameters

    name

    Attribute name.

    value

    Attribute value.

    Return Value

    This data attributes builder instance.

  • Configures the builder to add the given attribute.

    Declaration

    Swift

    public func with(name: String, value: Bool) -> DataAttributesBuilder

    Parameters

    name

    Attribute name.

    value

    Attribute value.

    Return Value

    This data attributes builder instance.

  • Configures the builder to add the given attribute.

    Declaration

    Swift

    public func with(name: String, value: DataAttributeValue) -> DataAttributesBuilder

    Parameters

    name

    Attribute name.

    value

    Attribute value.

    Return Value

    This data attributes builder instance.

  • Builds instance of DataAttributes.

    Declaration

    Swift

    public func build() -> DataAttributes

    Return Value

    Instance of the data attributes created with the given attributes.