Exemple #1
0
        public static bool IsSnapChatInstalled()
        {
            if (AGUtils.IsNotAndroid())
            {
                return(false);
            }

            return(AGDeviceInfo.IsPackageInstalled(SnapChatPackage));
        }
Exemple #2
0
        /// <summary>
        /// Determines if twitter is installed.
        /// </summary>
        /// <returns><c>true</c> if twitter is installed; otherwise, <c>false</c>.</returns>
        public static bool IsTwitterInstalled()
        {
            if (AGUtils.IsNotAndroidCheck())
            {
                return(false);
            }

            return(AGDeviceInfo.IsPackageInstalled(TwitterPackage));
        }
Exemple #3
0
        public static bool IsViberInstalled()
        {
            if (AGUtils.IsNotAndroid())
            {
                return(false);
            }

            return(AGDeviceInfo.IsPackageInstalled(ViberPackage));
        }
Exemple #4
0
        public static bool IsWhatsAppInstalled()
        {
            if (AGUtils.IsNotAndroid())
            {
                return(false);
            }

            return(AGDeviceInfo.IsPackageInstalled(WhatsAppPackage));
        }
Exemple #5
0
        public static bool IsFacebookMessengerInstalled()
        {
            if (AGUtils.IsNotAndroid())
            {
                return(false);
            }

            return(AGDeviceInfo.IsPackageInstalled(FbMessengerPackage));
        }
Exemple #6
0
        public static bool IsTelegramInstalled()
        {
            if (AGUtils.IsNotAndroidCheck())
            {
                return(false);
            }

            return(AGDeviceInfo.IsPackageInstalled(TelegramChatPackage));
        }
Exemple #7
0
        /// <summary>
        /// Opens systen settings window for the selected channel
        /// </summary>
        /// <param name="channelId">
        /// ID of the selected channel
        /// </param>
        public static void OpenNotificationChannelSettings(string channelId)
        {
            if (AGUtils.IsNotAndroid())
            {
                return;
            }

            var intent = new AndroidIntent(ACTION_CHANNEL_NOTIFICATION_SETTINGS);

            intent.PutExtra(EXTRA_APP_PACKAGE, AGDeviceInfo.GetApplicationPackage());
            intent.PutExtra(EXTRA_CHANNEL_ID, channelId);
            AGUtils.StartActivity(intent.AJO);
        }