1e41f4b71Sopenharmony_ci# SysCap
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciSystemCapability (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.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> 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.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## canIUse
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_cicanIUse(syscap: string): boolean
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ciChecks whether a SysCap is supported.
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Parameters**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci| Name| Type| Mandatory| Description|
20e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
21e41f4b71Sopenharmony_ci| syscap | string | Yes| Name of the SysCap to check.|
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**Return value**
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci| Type| Description|
26e41f4b71Sopenharmony_ci| -------- | -------- |
27e41f4b71Sopenharmony_ci| boolean | Check result. The value **true** means that the SysCap is supported, and **false** means the opposite.|
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci**Example**
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci  ```js
32e41f4b71Sopenharmony_ciimport { geoLocationManager } from '@kit.LocationKit'
33e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciconst isLocationAvailable = canIUse('SystemCapability.Location.Location.Core');
36e41f4b71Sopenharmony_ciif (isLocationAvailable) {
37e41f4b71Sopenharmony_ci    geoLocationManager.getCurrentLocation((err: BusinessError, location: geoLocationManager.Location) => {
38e41f4b71Sopenharmony_ci        if (err) {
39e41f4b71Sopenharmony_ci            console.error('err=' + JSON.stringify(err));
40e41f4b71Sopenharmony_ci        }
41e41f4b71Sopenharmony_ci        if (location) {
42e41f4b71Sopenharmony_ci            console.log('location=' + JSON.stringify(location));
43e41f4b71Sopenharmony_ci        }
44e41f4b71Sopenharmony_ci    });
45e41f4b71Sopenharmony_ci} else {
46e41f4b71Sopenharmony_ci    console.log('Location not by this device.');
47e41f4b71Sopenharmony_ci}
48e41f4b71Sopenharmony_ci  ```
49