-
public class FetchedAppGateKeepersManager
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
FetchedAppGateKeepersManager.Callback
Callback for fetch GK when the GK results are valid.
-
Field Summary
Fields Modifier and Type Field Description public final static FetchedAppGateKeepersManager
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
loadAppGateKeepersAsync()
final static Unit
loadAppGateKeepersAsync(FetchedAppGateKeepersManager.Callback callback)
final static JSONObject
queryAppGateKeepers(String applicationId, Boolean forceRequery)
final Map<String, Boolean>
getGateKeepersForApplication(String applicationId)
Obtain all gatekeeper values as a map final static Boolean
getGateKeeperForKey(String name, String applicationId, Boolean defaultValue)
final static Unit
setRuntimeGateKeeper(String applicationId, GateKeeper gateKeeper)
Set GateKeeper values in the runtime cache, so that it will affect GK reading later. final static Unit
resetRuntimeGateKeeperCache()
Invalid runtime GateKeeper cache so that the manager will load original GK values next time. -
-
Method Detail
-
loadAppGateKeepersAsync
final Unit loadAppGateKeepersAsync()
-
loadAppGateKeepersAsync
@Synchronized() final static Unit loadAppGateKeepersAsync(FetchedAppGateKeepersManager.Callback callback)
-
queryAppGateKeepers
final static JSONObject queryAppGateKeepers(String applicationId, Boolean forceRequery)
-
getGateKeepersForApplication
final Map<String, Boolean> getGateKeepersForApplication(String applicationId)
Obtain all gatekeeper values as a map
- Parameters:
applicationId
- the app id that gatekeepers related to
-
getGateKeeperForKey
final static Boolean getGateKeeperForKey(String name, String applicationId, Boolean defaultValue)
-
setRuntimeGateKeeper
final static Unit setRuntimeGateKeeper(String applicationId, GateKeeper gateKeeper)
Set GateKeeper values in the runtime cache, so that it will affect GK reading later. Only if GK exists in the cache, it will be updated.
- Parameters:
applicationId
- Application IDgateKeeper
- name-value pair of the Gate Keeper to be set
-
resetRuntimeGateKeeperCache
final static Unit resetRuntimeGateKeeperCache()
Invalid runtime GateKeeper cache so that the manager will load original GK values next time.
-
-
-
-