This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"url": "http://www.cloudinary.com", | |
"status":200 | |
}, | |
{ | |
"url": "http://www.github.com", | |
"status":204 | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GOScreenLockInstallDialog extends Activity { | |
.. | |
.. | |
Runnable optinRunnable = new Runnable() { | |
public void run() { | |
AdRock adrock = AdRock.getInstance(GOScreenLockInstallDialog.this); | |
adrock.register(GOScreenLockInstallDialog.this, new OptInDialogOptions(OptInDialogOptions.TYPE_ACTIVITY, OptInDialogOptions.THEME_LIGHT, true, true,true)); | |
} | |
}; | |
.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.pingjam.adrock.AdRock; | |
import com.pingjam.adrock.ui.OptInDialogOptions; | |
.. | |
.. | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
AdRock adrock = AdRock.getInstance(this); | |
if (adrock.singleExecution()){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. | |
.. | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main_activity); | |
AdRock adrock = AdRock.getInstance(this); | |
adrock.register(this,new OptInDialogOptions(OptInDialogOptions.TYPE_MODAL,OptInDialogOptions.THEME_LIGHT)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.acme.samplehost" android:versionCode="32" android:versionName="3.0.2"> | |
.. | |
.. | |
<!-- adrock permissions --> | |
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
<uses-permission android:name="android.permission.ACTION_PHONE_STATE_CHANGED" /> | |
<uses-permission android:name="android.permission.INTERNET" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = { | |
.. | |
.. | |
onDeviceReady: function() { | |
app.receivedEvent('deviceready'); | |
pingjam = new Pingjam(); | |
pingjam.register({type:Pingjam.TYPE_ACTIVITY}); | |
// available options are | |
// customButtonStyle (boolean / default true ): use gray buttons or green for ok and red for cancel | |
// nag (boolean / default false ): continue to display the registration dialog if user press cancel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.acme.samplehost" android:versionCode="32" android:versionName="3.0.2"> | |
.. | |
.. | |
<!-- adrock permissions --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /> | |
<uses-permission android:name="android.permission.ACTION_PHONE_STATE_CHANGED" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
.. | |
<body> | |
.. | |
.. | |
<script type="text/javascript" src="cordova-2.7.0.js"></script> | |
<script type="text/javascript" src="js/pingjam.js"></script> | |
<script type="text/javascript" src="js/index.js"></script> | |
.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<cordova> | |
.. | |
.. | |
<plugins> | |
.. | |
.. | |
<plugin name="Pingjam" value="com.pingjam.phonegap.AdRockPlugin" /> | |
</plugins> | |
</cordova> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using Pingjam; | |
public class PingjamInit : MonoBehaviour | |
{ | |
void Start () | |
{ | |
AdRock.Instance.Register (new OptInDialogOptions (){Theme=OptInDialogOptions.THEME_LIGHT,CustomButtonStyle=true}); | |
} |
NewerOlder