Skip to content

Latest commit

 

History

History
executable file
·
26 lines (18 loc) · 535 Bytes

File metadata and controls

executable file
·
26 lines (18 loc) · 535 Bytes

About the plugin

This is a simple plugin which is meant to provide a JavaScript interface to detect whether the app was build for Mac Catalyst.

Platforms

iOS

Usage

Installation

$ cordova plugin add https://github.com/qpwr/cordova-plugin-detect-mac-catalyst.git

JavaScript Interface

    detectMacCatalyst.isCatalyst(
        function(result) { 
            console.log("success", result) // result is either true or false
        },
        function() { 
            console.log("error");
        }
    );