예제 #1
0
 internal TileManager(BandClient client, NativeTileManager tileManager)
 {
     this.Native = tileManager;
     this.client = client;
    // this.Native.TileButtonPressed += OnNativeTileButtonPressed;
    // this.Native.TileOpened += OnNativeTileOpened;
    // this.Native.TileClosed += OnNativeTileClosed;
 }
        internal BandTileManager(BandClient client, NativeBandTileManager tileManager)
        {
            this.Native = tileManager;

            this.client = client;

#if __ANDROID__
            this.tileReceiver = new BandTileBroadcastReceiver(
                e => OnTileOpened(new BandTileOpenedEventArgs(e)),
                e => OnTileClosed(new BandTileClosedEventArgs(e)),
                e => OnTileButtonPressed(new BandTileButtonPressedEventArgs(e)));
#elif __IOS__
            this.tileDelegate = new BandTileDelegate(
                e => OnTileOpened(new BandTileOpenedEventArgs(e)),
                e => OnTileClosed(new BandTileClosedEventArgs(e)),
                e => OnTileButtonPressed(new BandTileButtonPressedEventArgs(e)));
#elif WINDOWS_PHONE_APP
            this.Native.TileButtonPressed += OnNativeTileButtonPressed;
            this.Native.TileOpened        += OnNativeTileOpened;
            this.Native.TileClosed        += OnNativeTileClosed;
#endif
        }
        internal BandTileManager(BandClient client, NativeBandTileManager tileManager)
        {
            this.Native = tileManager;

            this.client = client;
            
#if __ANDROID__
            this.tileReceiver = new BandTileBroadcastReceiver(
                e => OnTileOpened(new BandTileOpenedEventArgs(e)), 
                e => OnTileClosed(new BandTileClosedEventArgs(e)),
                e => OnTileButtonPressed(new BandTileButtonPressedEventArgs(e)));
#elif __IOS__
            this.tileDelegate = new BandTileDelegate(
                e => OnTileOpened(new BandTileOpenedEventArgs(e)),
                e => OnTileClosed(new BandTileClosedEventArgs(e)),
                e => OnTileButtonPressed(new BandTileButtonPressedEventArgs(e)));
#elif WINDOWS_PHONE_APP
            this.Native.TileButtonPressed += OnNativeTileButtonPressed;
            this.Native.TileOpened += OnNativeTileOpened;
            this.Native.TileClosed += OnNativeTileClosed;
#endif
        }
예제 #4
0
        internal BandTileManager(BandClient client, NativeBandTileManager tileManager)
        {
            this.Native = tileManager;

            this.client = client;
        }