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

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

package org.robolectric.shadows;

import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;

/**
 * A more advanced builder for {@link PhoneAccount} that gives access to some hidden methods on
 * {@link PhoneAccount.Builder}.
 */
public class PhoneAccountBuilder extends PhoneAccount.Builder {

  public PhoneAccountBuilder(PhoneAccountHandle accountHandle, CharSequence label) {
    super(accountHandle, label);
  }

  public PhoneAccountBuilder(PhoneAccount phoneAccount) {
    super(phoneAccount);
  }

  @Override
  public PhoneAccountBuilder setIsEnabled(boolean isEnabled) {
    super.setIsEnabled(isEnabled);
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy