public static class HoverParameters.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(Context c)
Intialize the Builder with a Context
|
Modifier and Type | Method and Description |
---|---|
HoverParameters |
build() |
Intent |
buildIntent()
Build the intent from data passed to com.hover.sdk.api.HoverParameters.Builder
Please use this rather than creating your own intent.
|
HoverParameters.Builder |
extra(java.lang.String key,
java.lang.String value)
To set variables that need to be passed to the USSD session.
|
HoverParameters.Builder |
hideFinalUssd(boolean hide)
Hide the final screen that shows the user the final USSD message
|
HoverParameters.Builder |
initialProcessingMessage(java.lang.String message)
Message to show the user when a transaction is in process.
|
HoverParameters.Builder |
request(java.lang.String actionId)
Set the Action ID for the Hover USSD request
|
HoverParameters.Builder |
setEnvironment(int environment)
Set the environment PROD_ENV (0), DEBUG_ENV (1), or TEST_ENV (2)
See usehover.com/docs for more about each environment
|
HoverParameters.Builder |
showUserStepDescriptions(boolean show)
Choose whether the step descriptions from your action configuration should be shown to the user.
|
HoverParameters.Builder |
style(int style)
Set customization style for Hover UI screens such as the PIN pad.
|
public Builder(Context c)
c
- Context, requiredpublic HoverParameters.Builder request(java.lang.String actionId)
actionId
- The reference ID from the Hover Dashboard for your Actionpublic HoverParameters.Builder extra(java.lang.String key, java.lang.String value)
.extra("amount" AMOUNT)
where AMOUNT is based on your use case (e.g. set by the user)key
- The name of the variable from your Hover Action's stepvalue
- The value to pass into the USSD sessionpublic HoverParameters.Builder setEnvironment(int environment)
environment
- PROD_ENV (0), DEBUG_ENV (1), or TEST_ENV (2)public HoverParameters.Builder initialProcessingMessage(java.lang.String message)
message
- The message to show to the user on the processing screenshowUserStepDescriptions(boolean)
public HoverParameters.Builder showUserStepDescriptions(boolean show)
show
- true or false, defaults to falseinitialProcessingMessage(String)
public HoverParameters.Builder hideFinalUssd(boolean hide)
hide
- true or false, defaults to falsepublic HoverParameters.Builder style(int style)
style
- A style resource like R.style.YOURSTYLEpublic HoverParameters build()
public Intent buildIntent()