HomeDocumentationAPI Reference
Getting StartedAPI ReferenceHelp CenterVideo Tours

Set Video Recording Button Position

Use this API to set the position of the video recording button when using the screen recording attachment functionality. This API can take an enum of the position.

Method

BugReporting.videoRecordingFloatingButtonPosition = .topLeft;
IBGBugReporting.videoRecordingFloatingButtonPosition = IBGPositionTopLeft;
BugReporting.setVideoRecordingFloatingButtonPosition(InstabugVideoRecordingButtonPosition.BOTTOM_LEFT);
Instabug.setVideoRecordingFloatingButtonPosition(Instabug.IBGPosition.topLeft);
cordova.plugins.instabug.setVideoRecordingFloatingButtonPosition(
  'topLeft',
  function () {
    console.log('Instabug initialized.');
  },
  function (error) {
    console.log('Instabug could not be initialized - ' + error);
  }
);
Position Parameters:

//Top Left
.topLeft
//Top Right
.topRight
//Bottom Left
.bottomLeft
//Bottom Right
.bottomRight
//Top Left
IBGPositionTopLeft
//Top Right
IBGPositionTopRight
//Bottom Left
IBGPositionBottomLeft
//Bottom Right
IBGPositionBottomRight
//Top Left
TOP_LEFT
//Top Right
TOP_RIGHT
//Bottom Left
BOTTOM_LEFT
//Bottom Right
BOTTOM_RIGHT
//Top Left
IBGPosition.topLeft
//Top Right
IBGPosition.topRight
//Bottom Left
IBGPosition.bottomLeft
//Bottom Right
IBGPosition.bottomLeft
//Top Left
'topLeft'
//Top Right
'topRight'
//Bottom Left
'bottomLeft'
//Bottom Right
'bottomRight'