Interface Appfigurate.FetchRemoteConfiguration
- Enclosing class:
Appfigurate
public static interface Appfigurate.FetchRemoteConfiguration
Used in conjunction with
Appfigurate.fetchRemoteConfiguration(FetchRemoteConfiguration)
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfetch
(String propertyKey, RemotePropertyType propertyType, Object defaultValue) When integrating with third party remote configuration providers, you must specify a block that is called back whenever Appfigurate requires the current value of a remote property.
-
Method Details
-
fetch
Object fetch(@NonNull String propertyKey, @NonNull RemotePropertyType propertyType, Object defaultValue) When integrating with third party remote configuration providers, you must specify a block that is called back whenever Appfigurate requires the current value of a remote property. The block will be called for each @RemoteXProperty annotation you have specified in yourConfiguration
subclass@RemoteBooleanProperty
‣RemotePropertyType.RemotePropertyTypeBoolean
‣ boolean@RemoteIntProperty
‣RemotePropertyType.RemotePropertyTypeInt
‣ int@RemoteDoubleProperty
‣RemotePropertyType.RemotePropertyTypeDouble
‣ double@RemoteStringProperty
‣RemotePropertyType.RemotePropertyTypeString
‣ String- Parameters:
propertyKey
- is the name of the remote property in the third party provider's systempropertyType
- will be one of theRemotePropertyType
enumerations indicating the exact type of the propertydefaultValue
- will be the value specified by the subclassesConfiguration.reset()
method- Returns:
- current value of a remote property.
- See Also:
-