---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# cabrillo - Client

# cabrillo - Client {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Cabrillo JS is a client
side JavaScript API for accessing capabilities inside ServiceNow native mobile
applications.

Use Cabrillo JS to
build a custom mobile experience in ServiceNow native mobile
applications. Cabrillo JS provides APIs to use native device capabilities, native mobile UI, and other ServiceNow mobile
functionality.  
Cabrillo JS is available in AngularJS as an injectable parameter. For example, you can inject Cabrillo JS in a Service Portal widget client script.

    function(cabrillo) {
        var c = this;

        // Used to determine if Cabrillo is executing in ServiceNow's native mobile apps.
        c.isNative = cabrillo.isNative();
    }

Cabrillo JS APIs are
only supported when executing in ServiceNow native mobile
applications. Use the cabrillo.isNative() API to determine if the script is
executing in a native context.  
Note:  
Cabrillo JS APIs are unavailable in GlideForm client scripts.

## cabrillo - isNative() {#ariaid-title2}

Boolean value indicating if Cabrillo JS is executing a
ServiceNow native mobile
application.
{#Cabrillo-isNative__table_eyk_y4w_2bb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#Cabrillo-isNative__table_eyk_y4w_2bb} {#Cabrillo-isNative__table_fyk_y4w_2bb__entry__2}

| Type | Description |
|-|-|
| Boolean | Returns true if Cabrillo JS is running in a native context; otherwise, false. |
[Table 2. Returns]

{#Cabrillo-isNative__table_fyk_y4w_2bb}  

    var isNative = cabrillo.isNative();


