public override bool onReceive(PushDataForApplication pushData, ClickButtonHandler handler) { Console.WriteLine("receive push data action: " + pushData.action.ToString()); Console.WriteLine("receive push data code: " + pushData.code.ToString()); Console.WriteLine("receive push data title: " + pushData.title); Console.WriteLine("receive push data message: " + pushData.message); if (pushData.data != null) { Console.WriteLine("receive push data data: " + pushData.data.ToString()); } Console.WriteLine("receive push data msg id: " + pushData.msgID.ToString()); Console.WriteLine("receive push data display without dialog: " + pushData.displayWithoutDialog.ToString()); Console.WriteLine("receive push data is foreground: " + pushData.isAppOnForeground.ToString()); Console.WriteLine("receive push data badge: " + pushData.badge.ToString()); Console.WriteLine("receive push data sound: " + pushData.sound); Console.WriteLine("receive push data is slide: " + pushData.isInAppSlide.ToString()); Console.WriteLine("receive push data orientation: " + pushData.orientation.ToString()); Console.WriteLine("receive push data portion: " + pushData.portion.ToString()); Console.WriteLine("receive push data speed: " + pushData.speed.ToString()); // if (pushData.action == SHAction.SHAction_OpenUrl) // { // if (handler != null) // { // handler (SHResult.SHResult_Accept); // } // return true; // } return(false); }
public override void onReceiveResult(PushDataForApplication pushData, SHPushResult result) { Console.WriteLine("receive result: " + result.ToString()); Console.WriteLine("receive result action: " + pushData.action.ToString()); Console.WriteLine("receive result code: " + pushData.code.ToString()); Console.WriteLine("receive result title: " + pushData.title); Console.WriteLine("receive result message: " + pushData.message); if (pushData.data != null) { Console.WriteLine("receive result data: " + pushData.data.ToString()); } Console.WriteLine("receive result msg id: " + pushData.msgID.ToString()); Console.WriteLine("receive result display without dialog: " + pushData.displayWithoutDialog.ToString()); Console.WriteLine("receive result is foreground: " + pushData.isAppOnForeground.ToString()); Console.WriteLine("receive result badge: " + pushData.badge.ToString()); Console.WriteLine("receive result sound: " + pushData.sound); Console.WriteLine("receive result is slide: " + pushData.isInAppSlide.ToString()); Console.WriteLine("receive result orientation: " + pushData.orientation.ToString()); Console.WriteLine("receive result portion: " + pushData.portion.ToString()); Console.WriteLine("receive result speed: " + pushData.speed.ToString()); }
public void OnReceiveResult(PushDataForApplication resultData,int result) { }
public void OnReceivePushData(PushDataForApplication pushData) { }
public override void onReceiveResult(PushDataForApplication pushData, SHResult result) { Console.WriteLine ("receive result: " + result.ToString()); Console.WriteLine ("receive result action: " + pushData.action.ToString()); Console.WriteLine ("receive result code: " + pushData.code.ToString()); Console.WriteLine ("receive result title: " + pushData.title); Console.WriteLine ("receive result message: " + pushData.message); if (pushData.data != null) { Console.WriteLine ("receive result data: " + pushData.data.ToString ()); } Console.WriteLine ("receive result msg id: " + pushData.msgID.ToString()); Console.WriteLine ("receive result display without dialog: " + pushData.displayWithoutDialog.ToString()); Console.WriteLine ("receive result is foreground: " + pushData.isAppOnForeground.ToString()); Console.WriteLine ("receive result badge: " + pushData.badge.ToString()); Console.WriteLine ("receive result sound: " + pushData.sound); Console.WriteLine ("receive result is slide: " + pushData.isInAppSlide.ToString()); Console.WriteLine ("receive result orientation: " + pushData.orientation.ToString()); Console.WriteLine ("receive result portion: " + pushData.portion.ToString()); Console.WriteLine ("receive result speed: " + pushData.speed.ToString()); }
public override bool onReceive(PushDataForApplication pushData, ClickButtonHandler handler) { Console.WriteLine ("receive push data action: " + pushData.action.ToString()); Console.WriteLine ("receive push data code: " + pushData.code.ToString()); Console.WriteLine ("receive push data title: " + pushData.title); Console.WriteLine ("receive push data message: " + pushData.message); if (pushData.data != null) { Console.WriteLine ("receive push data data: " + pushData.data.ToString ()); } Console.WriteLine ("receive push data msg id: " + pushData.msgID.ToString()); Console.WriteLine ("receive push data display without dialog: " + pushData.displayWithoutDialog.ToString()); Console.WriteLine ("receive push data is foreground: " + pushData.isAppOnForeground.ToString()); Console.WriteLine ("receive push data badge: " + pushData.badge.ToString()); Console.WriteLine ("receive push data sound: " + pushData.sound); Console.WriteLine ("receive push data is slide: " + pushData.isInAppSlide.ToString()); Console.WriteLine ("receive push data orientation: " + pushData.orientation.ToString()); Console.WriteLine ("receive push data portion: " + pushData.portion.ToString()); Console.WriteLine ("receive push data speed: " + pushData.speed.ToString()); // if (pushData.action == SHAction.SHAction_OpenUrl) // { // if (handler != null) // { // handler (SHResult.SHResult_Accept); // } // return true; // } return false; }
public void OnReceiveResult(PushDataForApplication p0, int p1) { // Put Break point here String somethingToDo = "do something cool"; }