BlackBerry.Navigator.Invoke C# (CSharp) Method

Invoke() public method

public Invoke ( InvokeRequest invocation ) : void
invocation InvokeRequest
return void
        public void Invoke(InvokeRequest invocation)
        {
            InvokeRequest.navigator_invoke_invocation_send (invocation.handle);
        }

Same methods

Navigator::Invoke ( string uri ) : void

Usage Example

Example #1
0
        public static void Main(string[] args)
        {
            using (var nav = new Navigator ())
            using (var ctx = Context.GetInstance (ContextType.Application))
            using (var win = new Window (ctx, WindowType.SCREEN_APPLICATION_WINDOW)) {
                win.AddBuffers (10);
                win.Identifier = "bla";
                var r = new Random();
                foreach (var b in win.Buffers) {
                    b.Fill ((uint)r.Next ());
                    win.Render (b);
                    System.Threading.Thread.Sleep (200);
                }
                //nav.AddUri ("", "Browser", "default", "http://google.com/");
                //nav.AddUri ("", "Messages", "default", "messages://");
                //return;

                var run = true;
                while (run) {
                    Dialog.Alert ("CLOSE ME!", "jpo1jo1j1oj1oj1",
                                  //new Button ("Timer", Timer),
                                  //new Button ("Camera", Cam),
                                  //new Button ("Messages", () => nav.Invoke ("messages://")),
                                  new Button ("Badge", () => nav.HasBadge = true),
                                  new Button ("Browser", () => nav.Invoke ("http://google.com/")),
                                  new Button ("Close", () => run = false));
                }
            }
        }
All Usage Examples Of BlackBerry.Navigator::Invoke