Android SDK Version


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
Modifier and TypeClassDescription
public interfaceFetchedAppGateKeepersManager.Callback
Callback for fetch GK when the GK results are valid.
Field Summary
Modifier and TypeFieldDescription
public final static FetchedAppGateKeepersManagerINSTANCE
Method Summary
Modifier and TypeMethodDescription
final UnitloadAppGateKeepersAsync()
final static UnitloadAppGateKeepersAsync(FetchedAppGateKeepersManager.Callback callback)
final static JSONObjectqueryAppGateKeepers(String applicationId, Boolean forceRequery)
final Map<String, Boolean>getGateKeepersForApplication(String applicationId) Obtain all gatekeeper values as a map
final static BooleangetGateKeeperForKey(String name, String applicationId, Boolean defaultValue)
final static UnitsetRuntimeGateKeeper(String applicationId, GateKeeper gateKeeper) Set GateKeeper values in the runtime cache, so that it will affect GK reading later.
final static UnitresetRuntimeGateKeeperCache() Invalid runtime GateKeeper cache so that the manager will load original GK values next time.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

loadAppGateKeepersAsync

 final UnitloadAppGateKeepersAsync()

loadAppGateKeepersAsync

@Synchronized() final static UnitloadAppGateKeepersAsync(FetchedAppGateKeepersManager.Callback callback)

queryAppGateKeepers

 final static JSONObjectqueryAppGateKeepers(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 BooleangetGateKeeperForKey(String name, String applicationId, Boolean defaultValue)

setRuntimeGateKeeper

 final static UnitsetRuntimeGateKeeper(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 ID
gateKeeper - name-value pair of the Gate Keeper to be set

resetRuntimeGateKeeperCache

 final static UnitresetRuntimeGateKeeperCache()
Invalid runtime GateKeeper cache so that the manager will load original GK values next time.