Black Friday: 40% off Bifrost Hela & Thor plans • Code: BLACKFRIDAY40
Ends in:
d
h
m
s

System


#Overview

The System API provides access to basic system functions like flashlight control and platform detection.

Copied!
use Native\Mobile\Facades\System;

#Methods

#flashlight() - Deprecated, see Device

Toggles the device flashlight (camera flash LED) on and off.

Returns: void

Copied!
System::flashlight(); // Toggle flashlight state

#isIos()

Determines if the current device is running iOS.

Returns: true if iOS, false otherwise

#isAndroid()

Determines if the current device is running Android.

Returns: true if Android, false otherwise

#isMobile()

Determines if the current device is running Android or iOS.

Returns: true if Android or iOS, false otherwise