public class AuthIntentBuilder extends Object
Constructor and Description |
---|
AuthIntentBuilder(Context context,
String developerToken)
Creates an instance of the AuthIntentBuilder.
|
Modifier and Type | Method and Description |
---|---|
Intent |
build()
Returns the intent which can be used to start the music kit authentication flow.
|
AuthIntentBuilder |
setContextId(String contextId)
Set the id of an album/playlist/song to give more context to the upsell that will display after deeplinking to Apple Music.
|
AuthIntentBuilder |
setCustomParams(HashMap<String,String> params)
Set dictionary with affiliate/campaign parameters if any to be passed to Apple Music.
|
AuthIntentBuilder |
setHideStartScreen(boolean hideStartScreen)
Set hideStartScreen to true to hide the authentication-flow-starting-activity and deeplink directly to Apple Music.
|
AuthIntentBuilder |
setStartScreenMessage(String startScreenMessage)
Sets the message to display in authentication-flow-starting-activity.
|
public AuthIntentBuilder(Context context, String developerToken)
context
- ContextdeveloperToken
- String: the developer tokenpublic Intent build()
Intent
: the intent which can be used to start the authentication flowpublic AuthIntentBuilder setContextId(String contextId)
contextId
- String: the id of the album, playlist, song etc to set the relevant context for the upsell.public AuthIntentBuilder setCustomParams(HashMap<String,String> params)
params
- HashMappublic AuthIntentBuilder setHideStartScreen(boolean hideStartScreen)
hideStartScreen
- boolean: if set opts out of the connect prompt screenpublic AuthIntentBuilder setStartScreenMessage(String startScreenMessage)
startScreenMessage
- String: text to set the authentication-flow-starting-screen message to.