Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-uxcam

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-uxcam

NativeScript plugin for UXCam.

  • 1.0.0-beta.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
2
Weekly downloads
 
Created
Source

NativeScript UXCam

Installation

tns plugin add nativescript-uxcam

NB: UXCam on iOS needs a minimum version of iOS 10.0

Usage

Setup

import {NSUXCam} from 'nativescript-uxcam';

NSUXCam.optIntoSchematicRecordings();
NSUXCam.startWithKey("<your-app-key>");

Hiding sensitive view

const sensitiveView = page.getViewById("<id-of-sensitive-view>");
NSUXCam.occludeSensitiveView(sensitiveView);

// Angular - replace <elementRefToOcclude> with your element reference after page is loaded
const sensitiveView = this.
<elementRefToOcclude>.nativeElement;
    NSUXCam.occludeSensitiveView(sensitiveView);

Event logging

// log event
NSUXCam.logEvent("<Event name>");

// log event with properties
NSUXCam.logEventWithProperties("<Event name>", {
    "prop-key": "<prop-value>"
});

API

APIDescription
startWithKeyStart session with app key
startNewSessionStart new session
stopSessionAndUploadDataStop current session and upload data
urlForCurrentSessionGet URL for current session
urlForCurrentUserGet URL for current user
occludeSensitiveScreenHide/unhide screen while sensitive view is present
occludeAllTextFieldsHide all text input fields
setUserIdentitySet user identity
setUserPropertySet property for current user
logEventLog event
logEventWithPropertiesLog event with properties
pauseScreenRecordingPause the screen recording
resumeScreenRecordingResume the screen recording
optOutOverallThis will cancel any current session recording and opt this device out of future session recordings
optInOverallCurrent session will be stopped and a new session will be started with the last settings
optIntoVideoRecordingThis will opt this device into video recording for future sessions
optOutOfVideoRecordingThis will opt this device out of video recording for future sessions
optInVideoRecordingStatusReturns the opt-in video status of this device
optInOverallStatusReturns the opt-in status of this device
cancelCurrentSessionCancels the recording of the current session and discards the data
setMultiSessionRecordSet whether to record multiple sessions or not
deletePendingUploadsDeletes any sessions that are awaiting upload
pendingSessionCountReturns how many sessions are waiting to be uploaded
occludeSensitiveViewHide a view that contains sensitive information or that you do not want recording
unOccludeSensitiveViewUnhides occluded view
occludeSensitiveViewWithoutGestureOccludes sensitive view and disables gesture capture for that view
tagScreenNameTag screen name. Useful for framework like flutter, react native and nativescript, where application is rendered in single controller or activity
setAutomaticScreenNameTaggingEnable / disable the automatic tagging of screen names
setPushNotificationTokenSet the token to be used to send push notifications to the app
reportBugEventSend a report of a problem your app encountered to be displayed in the dashboard
reportBugEventPropertiesSend bug event with associated properties

Keywords

FAQs

Package last updated on 05 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc