This minimises the Cyrano App, starts the screencast and record the screenshot in 30sec interval to pictures directory.
npm install cyranomini
npx cap sync
update the app manifest with the following permissions:
<!-- Permissions -->
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="28" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
declare the service in your android application:
<service android:name="com.company.cyranomini.FloatingButtonService"
android:foregroundServiceType="mediaProjection"/>
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
minimize() => Promise<any>
Returns: Promise<any>