|
| 1 | + |
| 2 | +# kidoz.* |
| 3 | + |
| 4 | +> --------------------- ------------------------------------------------------------------------------------------ |
| 5 | +> __Type__ [Library][api.type.Library] |
| 6 | +> __Revision__ [REVISION_LABEL](REVISION_URL) |
| 7 | +> __Keywords__ ads, advertising, KIDOZ |
| 8 | +> __Platforms__ Android, iOS |
| 9 | +> --------------------- ------------------------------------------------------------------------------------------ |
| 10 | +
|
| 11 | +## Overview |
| 12 | + |
| 13 | +<!--- |
| 14 | +
|
| 15 | +<div class="float-right" style="max-width: 240px; clear: both;"> |
| 16 | +
|
| 17 | +![][images.docs.plugin-screenshot-kidoz] |
| 18 | +
|
| 19 | +</div> |
| 20 | +
|
| 21 | +--> |
| 22 | + |
| 23 | +KIDOZ is a child-friendly content discovery platform, allowing you to boost app revenue and |
| 24 | +engagement without compromising on user experience and fun. Unique features include: |
| 25 | + |
| 26 | +* [COPPA](https://www.ftc.gov/enforcement/rules/rulemaking-regulatory-reform-proceedings/childrens-online-privacy-protection-rule) compliant in accordance with Federal Trade Commission laws regulating children's digital privacy and safety. |
| 27 | +* Unlike most ad networks, apps using KIDOZ can be included in the family section of the Google Play Store according to Google's [Designed for Families](https://developer.android.com/distribute/googleplay/families/about.html) program requirements. |
| 28 | +* Non-intrusive SDK specially made for kids which keeps your app nice and clean. |
| 29 | + |
| 30 | +<div class="guide-notebox"> |
| 31 | +<div class="notebox-title">Note</div> |
| 32 | + |
| 33 | +FeedView type ads were deprecated in plugin version 1.4.2 (KIDOZ sdk version 0.8.3.2) and are no longer available. |
| 34 | + |
| 35 | +FlexiView and VideoUnit type ads were deprecated in plugin version 1.4.5 (KIDOZ sdk version 0.8.5.1) and are no longer available. |
| 36 | + |
| 37 | +</div> |
| 38 | + |
| 39 | + |
| 40 | +## Registration |
| 41 | + |
| 42 | +Before you can use this plugin, you must [register](http://accounts.kidoz.net/publishers/register) with KIDOZ. |
| 43 | + |
| 44 | + |
| 45 | +## Syntax |
| 46 | + |
| 47 | + local kidoz = require( "plugin.kidoz" ) |
| 48 | + |
| 49 | + |
| 50 | +## Functions |
| 51 | + |
| 52 | +#### [kidoz.init()][plugin.kidoz.init] |
| 53 | + |
| 54 | +#### [kidoz.load()][plugin.kidoz.load] |
| 55 | + |
| 56 | +#### [kidoz.show()][plugin.kidoz.show] |
| 57 | + |
| 58 | +#### [kidoz.hide()][plugin.kidoz.hide] |
| 59 | + |
| 60 | +#### [kidoz.isLoaded()][plugin.kidoz.isLoaded] |
| 61 | + |
| 62 | + |
| 63 | +## Events |
| 64 | + |
| 65 | +#### [adsRequest][plugin.kidoz.event.adsRequest] |
| 66 | + |
| 67 | + |
| 68 | +## Project Settings |
| 69 | + |
| 70 | +To use this plugin, add an entry into the `plugins` table of `build.settings`. When added, the build server will integrate the plugin during the build phase. |
| 71 | + |
| 72 | +``````{ brush="lua" gutter="false" first-line="1" highlight="[5,6,7,8]" } |
| 73 | +settings = |
| 74 | +{ |
| 75 | + plugins = |
| 76 | + { |
| 77 | + ["plugin.kidoz"] = |
| 78 | + { |
| 79 | + publisherId = "com.coronalabs" |
| 80 | + }, |
| 81 | + }, |
| 82 | +} |
| 83 | +`````` |
| 84 | + |
| 85 | +In addition, please add the following entry to the <nobr>`settings` → `android`</nobr> table of `build.settings` to prevent your app from being installed on incompatible Android devices. |
| 86 | + |
| 87 | +``````{ brush="lua" gutter="false" first-line="1" highlight="[5]" } |
| 88 | +settings = |
| 89 | +{ |
| 90 | + android = |
| 91 | + { |
| 92 | + minSdkVersion = "17", |
| 93 | + }, |
| 94 | +} |
| 95 | +`````` |
| 96 | + |
| 97 | +<div class="guide-notebox"> |
| 98 | +<div class="notebox-title">Note</div> |
| 99 | + |
| 100 | +For Android, the following permissions/features are automatically added when using this plugin: |
| 101 | + |
| 102 | +* `"android.permission.INTERNET"` |
| 103 | +* `"android.permission.WRITE_EXTERNAL_STORAGE"` |
| 104 | + |
| 105 | +</div> |
0 commit comments