bl-lightning-sdk v1.5.6
BrightLine Lightning JS SDK
Run npm install to enable validations checks. Project workflow is documented in the Development Process confluence page
Getting started
Before you follow the steps below, make sure you have the
Lightning-CLI installed globally only your system
npm install -g @lightningjs/cli
Link the SDK to the App by running
npm link
Import
import BLAd from 'bl-lightning-sdk'
Release notes
- Added cleanup for components on ad initialization
- Fixed
blAdunavailable
issue - Replaced the
window
object withself
- Removed validation causing issues when initiating ad
Example
const BLdataUrl =
'//....../lightning.json'
const advertiserInfo = {
configId: '1018',
applicationName: 'THIS IS YOUR APP NAME',
advertisingIdentifier: 'YOU NEED TO GENERATE THIS IF APPLICABLE',
applicationVersion: 'YOU-POPULATE-THIS',
deviceName: 'YOU NEED TO POPULATE THIS',
}
export default class App extends Lightning.Component {
static _template() {
return {
w: 1920,
h: 1080,
BLAd: {
type: BLAd,
alpha: 0,
},
}
}
_init() {
// pass the advertiserInfo
this.tag('BLAd').BL_client(advertiserInfo)
// initialize the ad with
this.tag('BLAd').BL_init(BLdataUrl)
//
// destroy the ad with
this.tag("BLAd").destroyAd();
}
}
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
7 months ago
8 months ago
10 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago