updateViewport

The client updates the LynxView view size;

Syntax

Android

public void updateViewport(int widthMeasureSpec, int heightMeasureSpec)

Parameters

  • widthMeasureSpec: int: current LynxView width;
  • heightMeasureSpec: int: current LynxView height;

iOS

- (void)updateViewportWithPreferredLayoutWidth:(CGFloat)preferredLayoutWidth
                        preferredLayoutHeight:(CGFloat)preferredLayoutHeight;

- (void)updateViewportWithPreferredLayoutWidth:(CGFloat)preferredLayoutWidth
                         preferredLayoutHeight:(CGFloat)preferredLayoutHeight
                                    needLayout:(BOOL)needLayout;

Parameters

  • preferredLayoutWidth: CGFloat: current LynxView width;
  • preferredLayoutHeight: CGFloat: current LynxView height;
  • needLayout: BOOL: whether layout needs to be triggered;

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.