Skip to main content

setCaptureViewFrame()

Set the capture view frame position and size.

AilaCordovaPlugin.setCaptureViewFrame(frame)

Parameters

  • frame (Object) - Frame configuration:
    • x (Number, optional) - X position (defaults to centered)
    • y (Number, optional) - Y position (defaults to centered)
    • width (Number, optional) - Width (defaults to 350)
    • height (Number, optional) - Height (defaults to 250)

Returns

Promise that resolves when the frame is set.

Example

AilaCordovaPlugin.setCaptureViewFrame({
x: 50,
y: 100,
width: 300,
height: 200
});

// Use defaults
AilaCordovaPlugin.setCaptureViewFrame({});