setSizeSpec

open fun setSizeSpec(widthSpec: Int, heightSpec: Int)

Update the width/height spec. This is useful if you are currently detached and are responding to a configuration change. If you are currently attached then the HostView is the source of truth for width/height, so this call will be ignored.


open fun setSizeSpec(widthSpec: Int, heightSpec: Int, @Nullable output: Size)

Same as setSizeSpec but fetches the resulting width/height in the given Size.