Skip to content

Commit

Permalink
Merge pull request #40 from basil79/re-design-options
Browse files Browse the repository at this point in the history
added getVersion method description in documentation
  • Loading branch information
basil79 authored Jan 30, 2022
2 parents eba64a7 + 19e981a commit 94d4fbb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/ADSMANAGER.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- [Constructor](#constructor)
- [Methods](#public-methods)
- [getVersion](#getversion-string)
- [addEventListener](#addeventlistenereventname-callback)
- [removeEventListener](#removeeventlistenereventname)
- [requestAds](#requestadsvasturl-options)
Expand Down Expand Up @@ -46,6 +47,14 @@ const adsManager = new AdsManager(adContainer);

## Public Methods

### getVersion(): String

Get the version of `AdsManager`.

#### Returns

- **`String`** - The current version of `AdsManager`.

### addEventListener(eventName, callback)

Register a listener to a particular event.
Expand Down Expand Up @@ -167,14 +176,6 @@ Set the volume for the current ad.

- **`volume: Number`** - The volume to set, from `0` (muted) to `1` (loudest).

### getVersion(): String

Get the version of `AdsManager`.

#### Returns

- **`String`** - The current version of `AdsManager`

### destroy()

Removes ad assets loaded at runtime that need to be properly removed at the time of ad completion and stops the ad and all tracking.
Expand Down

0 comments on commit 94d4fbb

Please sign in to comment.