You're viewing an older version of this documentation. View the latest version (3.x)
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()#
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
Plugin Dev Kit
Build native plugins with
Claude Code
Learn More
NativePHP Ultra
All NativePHP plugins, teams & priority support from
$35/mo
Learn More
The Vibes
The unofficial Laracon US
Day 3
Grab Your Spot
Only 100 tickets!
The Masterclass
Go from zero to
published app
in no time
in no time
Learn More
Early Bird Pricing