Package com.spotify.sdk.android.auth.app
Class SpotifyNativeAuthUtil
java.lang.Object
com.spotify.sdk.android.auth.app.SpotifyNativeAuthUtil
-
Constructor Summary
ConstructorDescriptionSpotifyNativeAuthUtil
(Activity contextActivity, AuthorizationRequest request, com.spotify.sdk.android.auth.app.Sha1HashUtil sha1HashUtil) -
Method Summary
Modifier and TypeMethodDescriptionstatic Intent
createAuthActivityIntent
(Context context) Creates an intent that will launch the auth flow on the currently installed Spotify applicationstatic boolean
isSpotifyInstalled
(Context context) Check if a version of the Spotify main application is installedboolean
void
-
Constructor Details
-
SpotifyNativeAuthUtil
public SpotifyNativeAuthUtil(Activity contextActivity, AuthorizationRequest request, @NonNull com.spotify.sdk.android.auth.app.Sha1HashUtil sha1HashUtil)
-
-
Method Details
-
startAuthActivity
public boolean startAuthActivity() -
createAuthActivityIntent
Creates an intent that will launch the auth flow on the currently installed Spotify application- Returns:
- The auth Intent or null if the Spotify application couldn't be found
-
isSpotifyInstalled
Check if a version of the Spotify main application is installed- Parameters:
context
- The context of the caller, used to check if the app is installed- Returns:
- True if a Spotify app is installed, false otherwise
-
stopAuthActivity
public void stopAuthActivity()
-