Skip to content

Commit

Permalink
expose getFeatureGate API (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenny-statsig authored Jul 16, 2024
1 parent 8372546 commit 73e98d6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/Statsig/Statsig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ public class Statsig {
return checkGateImpl(gateName, withExposures: false, functionName: funcName()).value
}

/**
Get the value for the given feature gate

Parameters:
- gateName: The name of the feature gate setup on console.statsig.com

SeeAlso [Gate Documentation](https://docs.statsig.com/feature-gates/working-with)
*/
public static func getFeatureGate(_ gateName: String) -> FeatureGate {
return checkGateImpl(gateName, withExposures: true, functionName: funcName())
}

/**
Get the value for the given feature gate. No exposure event will be logged.

Expand Down

0 comments on commit 73e98d6

Please sign in to comment.