示例#1
0
        protected override void OnStart()
        {
            base.OnStart();
            m_SnapclientServiceConnection = new SnapclientServiceConnection(this);
            Intent intent = new Intent(this, typeof(SnapclientService));

            BindService(intent, m_SnapclientServiceConnection, Bind.AutoCreate);
        }
示例#2
0
        protected override void OnStart()
        {
            base.OnStart();
            m_SnapclientServiceConnection = new SnapclientServiceConnection(this);

            Intent playerIntent = new Intent(this, typeof(SnapclientService));

            BindService(playerIntent, m_SnapclientServiceConnection, Bind.AutoCreate);

            m_BroadcastServiceConnection = new BroadcastServiceConnection(this);
            Intent broadcastServiceIntent = new Intent(this, typeof(BroadcastService));

            BindService(broadcastServiceIntent, m_BroadcastServiceConnection, Bind.AutoCreate);
        }