Ejemplo n.º 1
0
        public void Init(string appId, HideUnityDelegate hideUnityDelegate, InitDelegate onInitComplete)
        {
            this.CallFB("SetUserAgentSuffix", string.Format(Constants.UnitySDKUserAgentSuffixLegacy, new object[0]));
            base.Init(hideUnityDelegate, onInitComplete);
            MethodArguments methodArguments = new MethodArguments();

            methodArguments.AddString("appId", appId);
            AndroidFacebook.JavaMethodCall <IResult> javaMethodCall = new AndroidFacebook.JavaMethodCall <IResult>(this, "Init");
            javaMethodCall.Call(methodArguments);
        }
Ejemplo n.º 2
0
        public override void AppEventsLogEvent(string logEvent, float?valueToSum, Dictionary <string, object> parameters)
        {
            MethodArguments methodArguments = new MethodArguments();

            methodArguments.AddString("logEvent", logEvent);
            methodArguments.AddNullablePrimitive <float>("valueToSum", valueToSum);
            methodArguments.AddDictionary("parameters", parameters);
            AndroidFacebook.JavaMethodCall <IResult> javaMethodCall = new AndroidFacebook.JavaMethodCall <IResult>(this, "LogAppEvent");
            javaMethodCall.Call(methodArguments);
        }
Ejemplo n.º 3
0
        public override void AppEventsLogPurchase(float logPurchase, string currency, Dictionary <string, object> parameters)
        {
            MethodArguments methodArguments = new MethodArguments();

            methodArguments.AddPrimative <float>("logPurchase", logPurchase);
            methodArguments.AddString("currency", currency);
            methodArguments.AddDictionary("parameters", parameters);
            AndroidFacebook.JavaMethodCall <IResult> javaMethodCall = new AndroidFacebook.JavaMethodCall <IResult>(this, "LogAppEvent");
            javaMethodCall.Call(methodArguments);
        }
Ejemplo n.º 4
0
 public override void LogOut()
 {
     AndroidFacebook.JavaMethodCall <IResult> javaMethodCall = new AndroidFacebook.JavaMethodCall <IResult>(this, "Logout");
     javaMethodCall.Call(null);
 }