Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kennyhu/fence 1213 update sdk to show if remote tracking is turned on #272

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions RadarSDK/Include/Radar.h
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,14 @@ typedef void (^_Nonnull RadarLogConversionCompletionHandler)(RadarStatus status,
*/
+ (RadarTrackingOptions *)getTrackingOptions;


/**
Returns a boolean indicating whether the local tracking options are over-ridden by remote tracking options

@return A boolean indicating whether the tracking option is being over-ridden by the remote tracking options

*/
+ (BOOL)isUsingRemoteTrackingOptions;
#pragma mark - Delegate

/**
Expand Down
4 changes: 4 additions & 0 deletions RadarSDK/Radar.m
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ + (RadarTrackingOptions *)getTrackingOptions {
return [RadarSettings remoteTrackingOptions] ? [RadarSettings remoteTrackingOptions] : [RadarSettings trackingOptions];
}

+ (BOOL)isUsingRemoteTrackingOptions {
return [RadarSettings remoteTrackingOptions] != nil;
}

#pragma mark - Delegate

+ (void)setDelegate:(id<RadarDelegate>)delegate {
Expand Down
Loading