Class SpotifyNativeAuthUtil

java.lang.Object
com.spotify.sdk.android.auth.app.SpotifyNativeAuthUtil

public class SpotifyNativeAuthUtil extends Object
  • 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

      @Nullable public static Intent createAuthActivityIntent(@NonNull Context context)
      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

      public static boolean isSpotifyInstalled(@NonNull Context context)
      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()