The "Cocoon" object holds all the Cocoon Extensions and other stuff needed for the Cocoon environment.
Classes
Namespaces
- Ad
- App
- Device
- Dialog
- InApp
- Motion
- Multiplayer
- Notification
- Proxify
- Share
- Social
- Touch
- Utils
- WebView
- Widget
Methods
-
<static> getPlatform() → {Cocoon.PlatformType}
-
Returns the platform where the app is running.
Returns:
The platform where the app is running.
- Type
- Cocoon.PlatformType
Example
var platform = Cocoon.getPlatform();
Members
-
<static> PlatformType
-
Defines the platform where the app is running.
Properties:
Name Type Description ANDROIDstring Android.
IOSstring iOS.
AMAZONstring Amazon.
WINDOWS_PHONEstring Windows phone.
BLACKBERRYstring Blackberry.
OTHERstring Other.
-
<static> version
-
Properties:
Name Type Description versionstring Current version of the library.
Example
console.log(Cocoon.version);