Badge.Plugin.NovaBadgeProvider.SetBadge C# (CSharp) Метод

SetBadge() публичный Метод

public SetBadge ( int count ) : void
count int
Результат void
		public override void SetBadge(int count) {
			try {
				var contentValues = new ContentValues();
				contentValues.Put("tag", GetPackageName() + "/" + GetMainActivityClassName());
				contentValues.Put("count", count);
				mContext.ContentResolver.Insert(Android.Net.Uri.Parse("content://com.teslacoilsw.notifier/unread_count"), contentValues);
			} catch (Java.Lang.IllegalArgumentException ex) {
				/* Fine, TeslaUnread is not installed. */
			} catch (Exception ex) {
				/* Some other error, possibly because the format of the ContentValues are incorrect. */
				throw new BadgesNotSupportedException(ex.Message);
			}
		}