All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowPlayerBase Maven / Gradle / Ivy

There is a newer version: 4.14.1
Show newest version
package org.robolectric.shadows;

import static android.os.Build.VERSION_CODES.O;

import android.media.IAudioService;
import android.os.Build;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.util.ReflectionHelpers;

@Implements(className = "android.media.PlayerBase", isInAndroidSdk = false,
    minSdk = Build.VERSION_CODES.N)
public class ShadowPlayerBase {

  @Implementation(minSdk = O)
  public static IAudioService getService() {
    return ReflectionHelpers.createNullProxy(IAudioService.class);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy