示例#1
0
 public static DeveloperInterface getInstance()
 {
     if (instance == null)
     {
         tapsellObject = new TapsellObject();
         instance      = new DeveloperInterface();
         instance.setJavaObject();
     }
     return(instance);
 }
示例#2
0
 void OnGUI()
 {
     if (GUI.Button(new Rect(50, 50, 100, 100), "Tapsell"))
     {
         // Show Tapsell Video
         // For Test Video: minimumAward = -2
         DeveloperInterface.getInstance().showNewVideo(-2, 0, (Boolean connected, Boolean isAvailable, int award) => {
             Debug.Log("test " + connected + " " + isAvailable + " " + award);
         });
     }
 }
示例#3
0
    // Use this for initialization

    void Start()
    {
        // Set your key
        DeveloperInterface.getInstance().init("ekdcaoonjrofaqipsbnffdlnrdafefalbhcmastitqhbffkhdcoqahdilnqrabcsiahoon");
        DeveloperInterface.getInstance().setAppUserId("USER_ID");

        // Check ready Video
        // For Test Video: minimumAward = -2
        DeveloperInterface.getInstance().checkCtaAvailability(-2, 0, (Boolean connected, Boolean isAvailable) => {
            Debug.Log("Tapsell: " + connected + " " + isAvailable);
        });
    }
 public void notifyCtaAvailability(String str)
 {
     DeveloperInterface.getInstance().notifyCtaAvailability(str);
 }
 public void notifyVideo(String str)
 {
     DeveloperInterface.getInstance().notifyVideo(str);
 }