org.robolectric.shadows.ShadowZoomButtonsController Maven / Gradle / Ivy
package org.robolectric.shadows;
import android.view.View;
import android.widget.ZoomButtonsController;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/**
* Shadow for {@link android.widget.ZoomButtonsController}.
*/
@SuppressWarnings({"UnusedDeclaration"})
@Implements(ZoomButtonsController.class)
public class ShadowZoomButtonsController {
private ZoomButtonsController.OnZoomListener listener;
public void __constructor__(View ownerView) {
}
@Implementation
public void setOnZoomListener(ZoomButtonsController.OnZoomListener listener) {
this.listener = listener;
}
public void simulateZoomInButtonClick() {
listener.onZoom(true);
}
public void simulateZoomOutButtonClick() {
listener.onZoom(false);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy