I want to pass the reference of private final class into the method of another class please help me. Thanks
This is the class which I declared in a separate class file and I want to use it
private final class Mute extends BooleanControl {
private Mute() {
super(javax.sound.sampled.BooleanControl.Type.MUTE, false, "True", "False");
}
In this method
public class BaseCameraActivity extends AppCompatActivity {
protected void onCreateActivity() {
findViewById(R.id.btn_mute).setOnClickListener(v -> {
//here i want to use the private class mute
});