Google.Play.Instant.Editor.PlayInstantBuildSettings

Provides methods for accessing and persisting Play Instant build settings.

Summary

Public static functions

IsInstantBuildType()
bool
Returns true if the currently selected build type is "Instant" or false if "Installed".
SetInstantBuildType(bool instantBuild)
void
Sets the instant build type.

Public static functions

IsInstantBuildType

boolIsInstantBuildType()

Returns true if the currently selected build type is "Instant" or false if "Installed".

This method can only be called on the Editor's main thread.

SetInstantBuildType

voidSetInstantBuildType(
boolinstantBuild
)

Sets the instant build type.

If true, changes the build type to instant and creates a "PLAY_INSTANT" scripting define symbol. If false, removes the "PLAY_INSTANT" scripting define symbol. This setting only affects builds started through Bundletool or the "Google" Editor menu. This method can only be called on the Editor's main thread.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2021年03月18日 UTC.