Added Capacitor isNative Function
This commit is contained in:
@@ -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}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user