public class SessionParams extends RenderParams
RenderSession.| Modifier and Type | Class and Description |
|---|---|
static class |
SessionParams.Key<T>
The class should be in RenderParams, but is here because it was
originally here and we cannot change the API without breaking backwards
compatibility.
|
static class |
SessionParams.RenderingMode |
DEFAULT_TIMEOUT| Constructor and Description |
|---|
SessionParams(ILayoutPullParser layoutDescription,
SessionParams.RenderingMode renderingMode,
java.lang.Object projectKey,
HardwareConfig hardwareConfig,
RenderResources renderResources,
LayoutlibCallback layoutlibCallback,
int minSdkVersion,
int targetSdkVersion,
LayoutLog log) |
SessionParams(ILayoutPullParser layoutDescription,
SessionParams.RenderingMode renderingMode,
java.lang.Object projectKey,
HardwareConfig hardwareConfig,
RenderResources renderResources,
LayoutlibCallback projectCallback,
int minSdkVersion,
int targetSdkVersion,
LayoutLog log,
int simulatedPlatformVersion) |
SessionParams(SessionParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdapterBinding(ResourceReference reference,
AdapterBinding data) |
java.util.Map<ResourceReference,AdapterBinding> |
getAdapterBindings() |
boolean |
getExtendedViewInfoMode() |
ILayoutPullParser |
getLayoutDescription() |
SessionParams.RenderingMode |
getRenderingMode() |
int |
getSimulatedPlatformVersion() |
boolean |
isLayoutOnly() |
void |
setExtendedViewInfoMode(boolean mode) |
void |
setLayoutOnly()
Deprecated.
Use
RenderSession.measure() instead |
getActivityName, getAppIcon, getAppLabel, getAssets, getConfigScreenSize, getDensity, getFlag, getHardwareConfig, getImageFactory, getLayoutlibCallback, getLocale, getLog, getMinSdkVersion, getOverrideBgColor, getProjectKey, getResources, getScreenHeight, getScreenWidth, getTargetSdkVersion, getTimeout, getXdpi, getYdpi, isBgColorOverridden, isForceNoDecor, isQuickStepEnabled, isRtlSupported, setActivityName, setAppIcon, setAppLabel, setAssetRepository, setFlag, setForceNoDecor, setImageFactory, setLocale, setOverrideBgColor, setQuickStep, setRtlSupport, setTimeoutpublic SessionParams(ILayoutPullParser layoutDescription, SessionParams.RenderingMode renderingMode, java.lang.Object projectKey, HardwareConfig hardwareConfig, RenderResources renderResources, LayoutlibCallback layoutlibCallback, int minSdkVersion, int targetSdkVersion, LayoutLog log)
layoutDescription - the ILayoutPullParser letting the LayoutLib Bridge visit the
layout file.renderingMode - The rendering mode.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 SessionParams(ILayoutPullParser layoutDescription, SessionParams.RenderingMode renderingMode, java.lang.Object projectKey, HardwareConfig hardwareConfig, RenderResources renderResources, LayoutlibCallback projectCallback, int minSdkVersion, int targetSdkVersion, LayoutLog log, int simulatedPlatformVersion)
layoutDescription - the ILayoutPullParser letting the LayoutLib Bridge visit the
layout file.renderingMode - The rendering mode.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.projectCallback - 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.simulatedPlatformVersion - try to simulate an old android platform. 0 means disabled.public SessionParams(SessionParams params)
public ILayoutPullParser getLayoutDescription()
public SessionParams.RenderingMode getRenderingMode()
public void setLayoutOnly()
RenderSession.measure() insteadpublic boolean isLayoutOnly()
public void addAdapterBinding(ResourceReference reference, AdapterBinding data)
public java.util.Map<ResourceReference,AdapterBinding> getAdapterBindings()
public void setExtendedViewInfoMode(boolean mode)
public boolean getExtendedViewInfoMode()
public int getSimulatedPlatformVersion()