Diffusion Apple API
6.10.0
Unified Client Library for iOS, tvOS and OS X / macOS
|
Builds free format PTDiffusionRecordV2 values.
This type of builder may be used to generate free format recordV2 values which are not constrained by a PTDiffusionRecordV2Schema.
Every mutating method returns the builder instance allowing calls to be chained.
Instance Methods | |
(instancetype) | - addRecordWithFields: |
(instancetype) | - addFields: |
(instancetype) | - clear |
(PTDiffusionRecordV2 *) | - build |
- (instancetype) addFields: | (NSArray< NSString * > *) | fields |
Adds one or more field values.
If there is a current record, adds the fields to the end of the current record; otherwise, adds a new record and adds the fields to that.
fields | Field values. This may be an empty array, in which case nothing changes. |
- (instancetype) addRecordWithFields: | (NSArray< NSString * > *) | fields |
Adds a new record comprising the given fields.
fields | Field values. This may be an empty array, in which case the new record is added with no fields. |
- (PTDiffusionRecordV2 *) build |
Returns an immutable record from the current state of this builder.
- (instancetype) clear |
Clears all current values from the builder allowing it to be reused to generate new data.