Namespace: Cocoon

Cocoon

The "Cocoon" object holds all the Cocoon Extensions and other stuff needed for the Cocoon environment.

Classes

Signal

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
ANDROID string

Android.

IOS string

iOS.

AMAZON string

Amazon.

WINDOWS_PHONE string

Windows phone.

BLACKBERRY string

Blackberry.

OTHER string

Other.

<static> version

Properties:
Name Type Description
version string

Current version of the library.

Example
console.log(Cocoon.version);

Namespace: Cocoon

Cocoon

The "Cocoon" object holds all the Cocoon Canvas+ Extensions and other stuff needed.

For more information about this specific namespace, please, visit the following link:

  • Cocoon common documentation
  • Classes

    Signal

    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
    ANDROID string

    Android.

    IOS string

    iOS.

    AMAZON string

    Amazon.

    WINDOWS_PHONE string

    Windows phone.

    BLACKBERRY string

    Blackberry.

    OTHER string

    Other.

    <static> version

    Properties:
    Name Type Description
    version string

    Current version of the library.

    Example
    console.log(Cocoon.version);
    Atomic Plugins - JavaScript Documentation by Ludei, DocStrap Copyright © 2012-2013
    The contributors to the JSDoc3 and DocStrap projects.