1# SysCap 2 3SystemCapability (SysCap) refers to a standalone feature in the operating system. Different devices support different SysCap sets. Each SysCap corresponds to one or more APIs. You can determine whether an API can be used by checking SysCap support. 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8 9## canIUse 10 11canIUse(syscap: string): boolean 12 13Checks whether a SysCap is supported. 14 15**System capability**: SystemCapability.ArkUI.ArkUI.Full 16 17**Parameters** 18 19| Name| Type| Mandatory| Description| 20| -------- | -------- | -------- | -------- | 21| syscap | string | Yes| Name of the SysCap to check.| 22 23**Return value** 24 25| Type| Description| 26| -------- | -------- | 27| boolean | Check result. The value **true** means that the SysCap is supported, and **false** means the opposite.| 28 29**Example** 30 31 ```js 32import geoLocationManager from '@ohos.geoLocationManager' 33import { BusinessError } from '@ohos.base'; 34 35const isLocationAvailable = canIUse('SystemCapability.Location.Location.Core'); 36if (isLocationAvailable) { 37 geoLocationManager.getCurrentLocation((err: BusinessError, location: geoLocationManager.Location) => { 38 if (err) { 39 console.log('err=' + JSON.stringify(err)); 40 } 41 if (location) { 42 console.log('location=' + JSON.stringify(location)); 43 } 44 }); 45} else { 46 console.log('Location not by this device.'); 47} 48 ``` 49