-
public class Hyphen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumHyphen.NetworkType
-
Field Summary
Fields Modifier and Type Field Description private Hyphen.NetworkTypenetworkprivate WeakReference<FragmentActivity>currentActivityprivate StringappSecretpublic final static HyphenINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitinitialize(Context context)final UnitsaveCredential(HyphenCredential credential)final UnitsaveEphemeralAccessToken(String ephemeralAccessToken)final StringgetEphemeralAccessToken()final UnitclearEphemeralAccessToken()final HyphenCredentialgetCredential()final Hyphen.NetworkTypegetNetwork()final UnitsetNetwork(Hyphen.NetworkType network)final WeakReference<FragmentActivity>getCurrentActivity()final UnitsetCurrentActivity(WeakReference<FragmentActivity> currentActivity)final StringgetAppSecret()final UnitsetAppSecret(String appSecret)-
-
Method Detail
-
initialize
final Unit initialize(Context context)
-
saveCredential
final Unit saveCredential(HyphenCredential credential)
-
saveEphemeralAccessToken
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final Unit saveEphemeralAccessToken(String ephemeralAccessToken)
-
getEphemeralAccessToken
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final String getEphemeralAccessToken()
-
clearEphemeralAccessToken
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final Unit clearEphemeralAccessToken()
-
getCredential
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final HyphenCredential getCredential()
-
getNetwork
final Hyphen.NetworkType getNetwork()
-
setNetwork
final Unit setNetwork(Hyphen.NetworkType network)
-
getCurrentActivity
final WeakReference<FragmentActivity> getCurrentActivity()
-
setCurrentActivity
final Unit setCurrentActivity(WeakReference<FragmentActivity> currentActivity)
-
getAppSecret
final String getAppSecret()
-
setAppSecret
final Unit setAppSecret(String appSecret)
-
-
-
-