コード例 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button>(Resource.Id.myButton);

            button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };

            Button helloBugfenderButton = FindViewById <Button>(Resource.Id.helloBugfenderButton);

            helloBugfenderButton.Click += delegate { Bugfender.D("hello_tag", "Hello world!"); };

            Button sendFeedbackButton = FindViewById <Button>(Resource.Id.sendFeedbackButton);

            sendFeedbackButton.Click += delegate
            {
                var intent = Bugfender.GetUserFeedbackActivityIntent(this, "Feedback Title", "Instructions", "Subject", "Message", "Send");
                this.StartActivityForResult(intent, Com.Bugfender.Sdk.Internal.UI.FeedbackActivity.RequestCode);
            };

            Button crashButton = FindViewById <Button>(Resource.Id.crashButton);

            crashButton.Click += delegate { throw new Exception("test"); };
        }
コード例 #2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Bugfender.ActivateLogger("szdGvhnVUsBYAAb8bdtnqOiWJxR4a23H");
            Bugfender.EnableUIEventLogging();
            Bugfender.WriteLine("Bugfender ID: {0}", Bugfender.DeviceIdentifier());
            Bugfender.SetDeviceString("User", "*****@*****.**");

            return(true);
        }
コード例 #3
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Bugfender.ActivateLogger("szdGvhnVUsBYAAb8bdtnqOiWJxR4a23H");
            Bugfender.EnableUIEventLogging();
            Bugfender.EnableXamarinCrashReporting();
            Bugfender.WriteLine("Bugfender ID: {0}", Bugfender.DeviceIdentifier());
            Bugfender.SetDeviceString(key: "User", value: "*****@*****.**"); // note we use named arguments, original method follows Cocoa conventions

            return(true);
        }
コード例 #4
0
    public override void OnCreate()
    {
        base.OnCreate();
        Bugfender.Init(this.ApplicationContext, "szdGvhnVUsBYAAb8bdtnqOiWJxR4a23H", true);
        Bugfender.EnableUIEventLogging(this);
        Bugfender.EnableLogcatLogging();

        Bugfender.D("TAG", "Hello, testing!");
        Bugfender.W("TAG", "Hello, warning!");
        Bugfender.E("TAG", Bugfender.DeviceIdentifier);
    }
コード例 #5
0
    public override void OnCreate()
    {
        base.OnCreate();
        Bugfender.Init(this.ApplicationContext, "jv7uuCzhmOWoma4x5NxoSb6EfJt7vX4Z", true);
        Bugfender.EnableUIEventLogging(this);
        Bugfender.EnableLogcatLogging();
        Bugfender.EnableXamarinCrashReporting();

        Bugfender.D("TAG", "Hello, testing!");
        Bugfender.W("TAG", "Hello, warning!");
        Bugfender.E("TAG", Bugfender.DeviceIdentifier);
    }
コード例 #6
0
        partial void UserFeedbackButton_TouchUpInside(UIButton sender)
        {
            UIViewController vc = Bugfender.UserFeedbackViewController("Send Feedback", "Hint", "This is the subject", "this is the message", "Send", "Cancel", HandleAction);

            this.ShowViewController(vc, sender);
        }
コード例 #7
0
 partial void LogButton_TouchUpInside(UIButton sender)
 {
     Bugfender.WriteLine("Hello world");
 }