org.robolectric.shadows.ShadowRegion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import android.graphics.Region;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.annotation.HiddenApi;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@Implements(Region.class)
public class ShadowRegion {
public static long nextId = 1;
@HiddenApi @Implementation
public static Number nativeConstructor() {
return RuntimeEnvironment.castNativePtr(nextId++);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy