org.robolectric.shadows.ShadowTouchDelegate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-core-v19 Show documentation
Show all versions of shadows-core-v19 Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import android.graphics.Rect;
import android.view.TouchDelegate;
import android.view.View;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
/**
* Shadow for {@link android.view.TouchDelegate}.
*/
@Implements(TouchDelegate.class)
public class ShadowTouchDelegate {
@RealObject private TouchDelegate realObject;
private Rect bounds;
private View delegateView;
public void __constructor__( Rect bounds, View delegateView ){
this.bounds = bounds;
this.delegateView = delegateView;
}
public Rect getBounds() {
return this.bounds;
}
public View getDelegateView() {
return this.delegateView;
}
}