Пример #1
0
        public void OnServiceDisconnected(ComponentName componentName)
        {
            var className = componentName.ShortClassName.Split('.').Last();

            if (nameof(SinchService).Equals(className))
            {
                mSinchServiceInterface = null;

                OnServiceDisconnected();
            }
        }
Пример #2
0
        public void OnServiceConnected(ComponentName componentName, IBinder iBinder)
        {
            var className = componentName.ShortClassName.Split('.').Last();

            if (nameof(SinchService).Equals(className))
            {
                mSinchServiceInterface = (SinchService.SinchServiceInterface)iBinder;

                OnServiceConnected();
            }
        }