mbonaci / scala Goto Github PK
View Code? Open in Web Editor NEWScala reference (as seen by Java developer)
Home Page: http://mbonaci.github.io/scala/
License: Other
Scala reference (as seen by Java developer)
Home Page: http://mbonaci.github.io/scala/
License: Other
how to solve class,interface and enum expected in this codes can you add interface and enum in this codes----------------------
import com.apptracker.android.listener.AppModuleListener;
import com.apptracker.android.track.AppTracker;
// Leadbolt SDK imports
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if(savedInstanceState == null) {
// Initialize Leadbolt SDK with your api key
AppTracker.startSession(getApplicationContext(),"YOUR_APP_API_KEY",AppTracker.ENABLE_AUTO_CACHE);
}
// cache Leadbolt Ad without showing it
AppTracker.loadModuleToCache(getApplicationContext(),"inapp");
}
public void gameOver() {
// call this when you want to display the Leadbolt Interstitial
if(AppTracker.isAdReady("inapp")) {
AppTracker.loadModule(getApplicationContext(),"inapp");
}
}
}
AppTracker.setAgeRange("18-25");
// Allowed values for Age range are: "13-17", "18-25", "26-35", "36-45",
"46+"
AppTracker.setGender("Female");
// Allowed values for Gender are: "Male", "Female"
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import com.apptracker.android.listener.AppModuleListener;
import com.apptracker.android.track.AppTracker;
// Leadbolt SDK imports
public class MainActivity extends Activity {
private AppModuleListener leadboltListener = new AppModuleListener() {
@OverRide
public void onModuleLoaded(String location) {
// Add code here to pause game and/or all media including audio
}
@OverRide
public void onModuleFailed(String location, String error, boolean isCache)
{}
@OverRide
public void onModuleClosed(String location) {
// Add code here to resume game and/or all media including audio
}
@OverRide
public void onModuleClicked(String location) {}
@OverRide
public void onModuleCached(String location) {
// Add code if not auto-recaching for when loadModuleModuleToCache is
successful
}
@OverRide
public void onMediaFinished(boolean viewCompleted) {
if(viewCompleted) {
Log.i("AppTracker", "User finished watching rewarded video");
} else {
Log.i("AppTracker", "User skipped watching rewarded video");
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if(savedInstanceState == null) {
// Initialize Leadbolt SDK with your api key
AppTracker.setModuleListener(leadboltListener);
AppTracker.startSession(getApplicationContext(),"YOUR_APP_API_KEY",AppTracker.ENABLE_AUTO_CACHE);
}
// cache Leadbolt Video Ad without showing it
AppTracker.loadModuleToCache(getApplicationContext(),"video");
}
public void gameOver() {
// call this when you want to display the Leadbolt Video
if(AppTracker.isAdReady("video")) {
AppTracker.loadModule(getApplicationContext(),"video");
}
}
}
1
2
3
4
5
AppTracker.setAgeRange("18-25");
// Allowed values for Age range are: "13-17", "18-25", "26-35", "36-45",
"46+"
AppTracker.setGender("Female");
// Allowed values for Gender are: "Male", "Female"
private AppModuleListener leadboltListener = new AppModuleListener() {
@OverRide
public void onModuleLoaded(String location) {
Log.i("AppTracker", "Ad loaded successfully - "+location);
// Add code here to pause game and/or all media including audio
}
@OverRide
public void onModuleFailed(String location, String error, boolean
isCache) {
if(isCache) {
Log.i("AppTracker", "Ad failed to cache - "+location);
} else {
Log.i("AppTracker", "Ad failed to display - "+location);
}
}
@OverRide
public void onModuleClosed(String location) {
Log.i("AppTracker", "Ad closed by user - "+location);
// Add code here to resume game and/or all media including audio
}
@OverRide
public void onModuleClicked(String location) {
Log.i("AppTracker", "Ad clicked by user - "+location);
}
@OverRide
public void onModuleCached(String location) {
Log.i("AppTracker", "Ad cached successfully - "+location);
// Add code if not auto-recaching for when loadModuleModuleToCache
is successful
}
@OverRide
public void onMediaFinished(boolean viewCompleted) {
if(viewCompleted) {
Log.i("AppTracker", "User finished watching rewarded video");
} else {
Log.i("AppTracker", "User skipped watching rewarded video");
}
}
};
2
AppTracker.setModuleListener(leadboltListener);
AppTracker.startSession(getApplicationContext(),"YOUR_APP_API_KEY",AppTracker.ENABLE_AUTO_CACHE);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.