Added Capacitor isNative Function

This commit is contained in:
2025-09-24 17:51:02 +02:00
parent 0da2beaa64
commit 76e1a333dc

View File

@@ -17,10 +17,14 @@ export const useCapacitor = () => {
return deviceInfo.model.toLowerCase().includes('iphone') return deviceInfo.model.toLowerCase().includes('iphone')
} }
const getIsNative = () => {
return Capacitor.isNativePlatform()
}
const getNetworkStatus = async () => { const getNetworkStatus = async () => {
return await Network.getStatus() return await Network.getStatus()
} }
return {getPlatform, getDeviceInfo, getNetworkStatus, getIsPhone} return {getPlatform, getDeviceInfo, getNetworkStatus, getIsPhone, getIsNative}
} }