# Coins Collection The Coins collection contains the inserted coins. Members Table The following table lists the members provided by the Coins collection.
Members
Properties | Description
Count | The number of inserted coins.
Methods | Description
Item | Returns one item of the collection.
Remarks This collection is available through the object DevInfoAdapter. Use the Coins collection to receive the inserted coin values. Note that the path of a file using SiteKiosk objects must be allowed in the SiteKiosk configuration (Security -> Access -> URL's With Script Permission) if it is not a browser skin file. Examples The following example shows all inserted coin values of the first device in an alert window.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    firstDevCoins = SiteKiosk.Plugins("SiteCash").Devices2.Item(1).Coins;
    cVals = "";
    for (i = 1; i <= firstDevCoins.Count; i++)
    {
       cVals += firstDevCoins.Item(i);
       if (i != firstDevCoins.Count) cVals += ", ";
    }
    alert(cVals);
    </SCRIPT>
Applies to SiteKiosk v6.0 (and later versions). Back to top