Skip to main content

LayoutBreakpointsOptions class

Provides an object that allows for additional Layout Breakpoints configurations.

Import statement

import com.applitools.eyes.LayoutBreakpointsOptions;

LayoutBreakpointsOptions method

Syntax

LayoutBreakpointsOptions options = new LayoutBreakpointsOptions();

breakpoints method

Syntax

LayoutBreakpointsOptions options = new LayoutBreakpointsOptions().breakpoints(true);
LayoutBreakpointsOptions options = new LayoutBreakpointsOptions().breakpoints(new int[]{640,768,1024});
LayoutBreakpointsOptions options = new LayoutBreakpointsOptions().breakpoints(640,768,1024);

Parameters

shouldSet

Type: boolean

If this parameter has a value of true, then layout breakpoints will be applied.

breakpoints

Type: int[]

An array of all values to use for layout breakpoints.

breakpoints

Type: Integer...

Integer values to use for breakpoints.

Return value

Type: LayoutBreakpointsOptions

The value returned is the object that called the method. You can use it to call other methods supported by the object class.

reload method

Syntax

LayoutBreakpointsOptions options = new LayoutBreakpointsOptions().reload();
LayoutBreakpointsOptions options = new LayoutBreakpointsOptions().reload(true);

Parameters

shouldReload

Type: boolean

If this parameter has a value of true, then page will reload before each resize.

Return value

Type: LayoutBreakpointsOptions

The value returned is the object that called the method. You can use it to call other methods supported by the object class.