This library allows you to show and play Leadbolt ads.
You need to first register with Leadbolt: www.leadbolt.com
To show an ad:
1. Add this line to disable https limitations:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
2. Initialize LeadBolt object with your key.
3. Call LoadModuleToCache to load an ad (module should be inapp or video).
4. Call ShowModule to show a previously loaded ad.
Monitor the logs for relevant messages.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Library installation
The zip file contains three files with the following extensions: .xml, .a and .h.
You need to copy the xml file to the internal libraries folder on the Windows computer.
If you are using a local Mac builder then you need to
- Copy the .a and .h files to the Mac Libs folder.
- Download Leadbolt SDK and copy libAppTracker.a to the Mac Libs folder.
			
			You need to first register with Leadbolt: www.leadbolt.com
To show an ad:
1. Add this line to disable https limitations:
			
				B4X:
			
		
		
		#PlistExtra:<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict>
	2. Initialize LeadBolt object with your key.
3. Call LoadModuleToCache to load an ad (module should be inapp or video).
4. Call ShowModule to show a previously loaded ad.
Monitor the logs for relevant messages.
			
				B4X:
			
		
		
		#PlistExtra:<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict>
Sub Process_Globals
   Public App As Application
   Public NavControl As NavigationController
   Private Page1 As Page
   Private lb As Leadbolt
End Sub
Private Sub Application_Start (Nav As NavigationController)
   NavControl = Nav
   Page1.Initialize("Page1")
   NavControl.ShowPage(Page1)
   Page1.RootPanel.LoadLayout("1")
   lb.Initialize("lb", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbXNCRKiQGgP")
   lb.LoadModuleToCache("inapp")
End Sub
Private Sub Page1_Click
   lb.ShowModule("inapp", Page1)
End Sub
Private Sub lb_Loaded
End Sub
Private Sub lb_Failed
End Sub
Private Sub lb_Closed
End Sub
Private Sub lb_Clicked
End Sub
Private Sub lb_Cached
End Sub
Private Sub lb_MediaFinished
End Sub
	Library installation
The zip file contains three files with the following extensions: .xml, .a and .h.
You need to copy the xml file to the internal libraries folder on the Windows computer.
If you are using a local Mac builder then you need to
- Copy the .a and .h files to the Mac Libs folder.
- Download Leadbolt SDK and copy libAppTracker.a to the Mac Libs folder.
Attachments
			
				Last edited: