
org.robolectric.shadows.ShadowZoomButtonsController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.view.View;
import android.widget.ZoomButtonsController;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@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