Interface FlagsmithSdk

All Known Implementing Classes:
FlagsmithApiWrapper

public interface FlagsmithSdk
  • Method Details

    • getFeatureFlags

      Flags getFeatureFlags​(boolean doThrow)
    • identifyUserWithTraits

      Flags identifyUserWithTraits​(String identifier, List<? extends TraitModel> traits, boolean isTransient, boolean doThrow)
    • getConfig

      FlagsmithConfig getConfig()
    • getEnvironment

      EnvironmentModel getEnvironment()
    • getRequestor

      RequestProcessor getRequestor()
    • newGetRequest

      okhttp3.Request newGetRequest​(okhttp3.HttpUrl url)
    • newPostRequest

      okhttp3.Request newPostRequest​(okhttp3.HttpUrl url, okhttp3.RequestBody body)
    • close

      void close()
    • getCache

      default FlagsmithCache getCache()
    • assertValidUser

      default void assertValidUser​(String identifier)
      validate user has a valid identifier.
      Parameters:
      identifier - user identifier