public abstract class RenderParams
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TIMEOUT |
Constructor and Description |
---|
RenderParams(java.lang.Object projectKey,
HardwareConfig hardwareConfig,
RenderResources renderResources,
LayoutlibCallback layoutlibCallback,
int minSdkVersion,
int targetSdkVersion,
LayoutLog log) |
RenderParams(RenderParams params)
Copy constructor.
|
public static final long DEFAULT_TIMEOUT
public RenderParams(java.lang.Object projectKey, HardwareConfig hardwareConfig, RenderResources renderResources, LayoutlibCallback layoutlibCallback, int minSdkVersion, int targetSdkVersion, LayoutLog log)
projectKey
- An Object identifying the project. This is used for the cache mechanism.hardwareConfig
- the HardwareConfig
.renderResources
- a RenderResources
object providing access to the resources.layoutlibCallback
- The LayoutlibCallback
object to get information from
the project.minSdkVersion
- the minSdkVersion of the projecttargetSdkVersion
- the targetSdkVersion of the projectlog
- the object responsible for displaying warning/errors to the user.public RenderParams(RenderParams params)
public void setOverrideBgColor(int color)
public void setTimeout(long timeout)
public void setImageFactory(IImageFactory imageFactory)
public void setAppIcon(java.lang.String appIcon)
public void setAppLabel(java.lang.String appLabel)
public void setLocale(java.lang.String locale)
public void setActivityName(java.lang.String activityName)
public void setForceNoDecor()
public void setRtlSupport(boolean supportsRtl)
public void setAssetRepository(AssetRepository assetRepository)
public java.lang.Object getProjectKey()
public HardwareConfig getHardwareConfig()
public int getMinSdkVersion()
public int getTargetSdkVersion()
@Deprecated public int getScreenWidth()
getHardwareConfig()
@Deprecated public int getScreenHeight()
getHardwareConfig()
@Deprecated public Density getDensity()
getHardwareConfig()
@Deprecated public float getXdpi()
getHardwareConfig()
@Deprecated public float getYdpi()
getHardwareConfig()
public RenderResources getResources()
public AssetRepository getAssets()
@Deprecated public IProjectCallback getProjectCallback()
getLayoutlibCallback()
public LayoutlibCallback getLayoutlibCallback()
public LayoutLog getLog()
public boolean isBgColorOverridden()
public int getOverrideBgColor()
public long getTimeout()
public IImageFactory getImageFactory()
@Deprecated public ScreenSize getConfigScreenSize()
getHardwareConfig()
public java.lang.String getAppIcon()
public java.lang.String getAppLabel()
public java.lang.String getLocale()
public java.lang.String getActivityName()
public boolean isForceNoDecor()
public boolean isRtlSupported()
public <T> void setFlag(SessionParams.Key<T> key, T value)
public <T> T getFlag(SessionParams.Key<T> key)