*Incoming Tags

Added incoming tags

You can set tags to Incoming then all tracks received after installing TAGS will be marked with these tags. Here the binding is done on a person (deviceToken). You can add, remove, and get a list of installed tags on IncomingTags for enriched trips these are the same tags as on Incoming but already linked to a specific track. You can also delete, add, and get Tags already linked to a specific track.

  • (void)addFutureTrackTag:(RPTag *)tag completion:(RPAPIITagCallback)callback;

  • (void)removeFutureTrackTag:(RPTag *)tag completion:(RPAPIITagCallback)callback;

  • (void)getFutureTrackTag:(NSInteger)timestamp completion:(RPAPIITagGCallback)callback;

  • (void)removeAllFutureTrackTagsWithСompletion:(RPAPIITagWCallback)callback;

addFutureTrackTag example

  1. with out completion: [[RPEntry instance].api addFutureTrackTag:tag completion:nil];

  2. with completion: [[RPEntry instance].api addFutureTrackTag:tag completion:^(RPTagStatus status, RPTag *tag, NSInteger timestamp) {}];

Usage example:

[[RPEntry instance].api addFutureTrackTag:tag completion:nil];
[[RPEntry instance].api addFutureTrackTag:tag completion:^(RPTagStatus status, RPTag *tag, NSInteger timestamp) {}];
[[RPEntry instance].api getFutureTrackTag:0 completion:^(RPTagStatus status, NSArray<RPTag *> *tags, NSInteger timestamp) {
    for (RPTag *item in tags) {
        NSLog(@"%@", item.tag);
    }
}];
[[RPEntry instance].api removeFutureTrackTag:tag completion:^(RPTagStatus status, RPTag *tag, NSInteger timestamp) {}];
[[RPEntry instance].api removeAllFutureTrackTagsWithСompletion:^(RPTagStatus status, NSInteger timestamp) {}];

Added new RPTagsServerStateDelegate for online and offline operation status logging RPTagStatus in this protocol

Usage example:

Last updated

Was this helpful?