public MainViewModel(IMscsService mscsService, ISerializationService serializationService, IPhotoService photoService, IMessageBoxService messageBoxService, ITextToSpeechService textToSpeechService, ILocationService locationService, IGeocodingService geocodingService, ISpeechToTextService speechToTextService, IPublicTransportServices publicTransportServices, ITranslationService translationService, IMvxAndroidCurrentTopActivity activity) { this._mscsService = mscsService; this._photoService = photoService; this._messageBoxService = messageBoxService; this._textToSpeechService = textToSpeechService; this._locationService = locationService; this._geocodingService = geocodingService; this._speechToTextService = speechToTextService; this._publicTransportServices = publicTransportServices; this._translationService = translationService; this._checkNetwork = new CheckInternetConnection(); this._checkLocation = new CheckLocationAvailability(); this._speechToTextService.MessageChanged += HandleMessageChanged; this._photoService.PhotoChanged += HandlePhotoChanged; _textToSpeechService.Speak( "Witaj w aplikacji blind. Tapnij na ekran i powiedz komende dla danej funkcji. Aby uzyskaæ informacjê o dostêpnych funkcjach tapnij w ekran i powiedz menu"); CheckSettingsAfterStart(); }
public LocationService(IMvxAndroidGlobals androidGlobals, IMvxAndroidCurrentTopActivity topActivity) { _androidGlobals = androidGlobals; _topActivity = topActivity; _locationRequest = LocationRequest.Create(); _locationRequest.SetSmallestDisplacement(_displacement); _locationRequest.SetPriority(LocationRequest.PriorityLowPower); this.InitializeGoogleAPI(); }
public void Alert(string message, string btnText) { IMvxAndroidCurrentTopActivity top = Mvx.Resolve <IMvxAndroidCurrentTopActivity>(); Activity act = top.Activity; AlertDialog.Builder adb = new AlertDialog.Builder(act); adb.SetMessage(message); adb.SetPositiveButton(btnText, (sender, args) => { //No logic necessary! }); adb.Create().Show(); }
public async Task<MobileUser> Login(Core.Services.MobileServiceAuthenticationProvider provider) { _provider = provider; _currentActivity = Mvx.Resolve<IMvxAndroidCurrentTopActivity>(); CurrentPlatform.Init(); _client = new MobileServiceClient( "https://tekconfauth.azure-mobile.net/", "NeMPYjchPdsFKlUqDdyAJYZtdrOPiJ11"); await Authenticate(); return new MobileUser { Token = _user.MobileServiceAuthenticationToken, UserId = _user.UserId }; }
public async Task <MobileUser> Login(Core.Services.MobileServiceAuthenticationProvider provider) { _provider = provider; _currentActivity = Mvx.Resolve <IMvxAndroidCurrentTopActivity>(); CurrentPlatform.Init(); _client = new MobileServiceClient( "https://tekconfauth.azure-mobile.net/", "NeMPYjchPdsFKlUqDdyAJYZtdrOPiJ11"); await Authenticate(); return(new MobileUser { Token = _user.MobileServiceAuthenticationToken, UserId = _user.UserId }); }
public PhotoService2(IMvxAndroidCurrentTopActivity activity) { this._activity = activity; }
public AlertService(IMvxAndroidCurrentTopActivity currentTopActivity) { CurrentTopActivity = currentTopActivity ?? throw new ArgumentNullException(nameof(currentTopActivity)); }
public DialogWithUser(IMvxAndroidCurrentTopActivity topActivity) => _topActivity = topActivity;
public DialogService() { _currentTopActivity = Mvx.Resolve <IMvxAndroidCurrentTopActivity>(); }
public DroidDialogService(IMvxAndroidCurrentTopActivity topActivity) => _topActivity = topActivity;
public DroidBrowserService(IMvxAndroidCurrentTopActivity topActivity) => _topActivity = topActivity;
public OpenLinkCommand(IMvxAndroidCurrentTopActivity topActivityProvider) { _topActivityProvider = topActivityProvider; }
public MvxUserInteraction(IMvxMainThreadDispatcher dispatcher, IMvxAndroidCurrentTopActivity topActivity) { _topActivity = topActivity; _dispatcher = dispatcher; _progressHelper = new ProgressHelper(_dispatcher); }
public CheckLocationAvailability() { this._activity = Mvx.Resolve <IMvxAndroidCurrentTopActivity>(); }
public AndroidSocialShareService(IMvxAndroidCurrentTopActivity currentTopActivity) { _currentTopActivity = currentTopActivity; }
public TwitterServiceMonoDroid(OAuthConfig oauthConfig, IMvxAndroidCurrentTopActivity topActivity) : base(oauthConfig) { _parent = topActivity.Activity; LoadCredentials(); }
public LoginService(IMvxAndroidCurrentTopActivity currentTop) { client = MobileServiceClientWrapper.Instance.Client; activity = currentTop.Activity; }
public IOStorageService(IUserInteractionService userInteraction, IMvxAndroidCurrentTopActivity context) { this.userInteraction = userInteraction; this.context = context; }
public MessageService(IMvxAndroidCurrentTopActivity currentActivity) { _currentActivity = currentActivity; }
public DeviceService(IMvxAndroidCurrentTopActivity contextService) { _contextService = contextService ?? throw new ArgumentNullException(nameof(contextService)); }
public QuitApplicationService(IMvxAndroidCurrentTopActivity topActivity) { _topActivity = topActivity; }
public ShowDialogService(IMvxAndroidCurrentTopActivity topActivityService) { _topActivityService = topActivityService; }
public DroidShareService(IMvxAndroidCurrentTopActivity topActivity) => _topActivity = topActivity;
public MessageService(IMvxAndroidCurrentTopActivity context) { Context = context; }
public SpeechToTextService(IMvxAndroidCurrentTopActivity activity) { this._activity = activity; }
public PopupService(IMvxAndroidCurrentTopActivity activity) { _activity = activity.Activity; }
/// <summary> /// Constructor /// </summary> public BackgroundTaskManager(IMvxAndroidCurrentTopActivity currentActivity) { this.currentActivity = currentActivity.Activity; }
public AlertService(IMvxAndroidCurrentTopActivity topActivityHolder) { _topActivityHolder = topActivityHolder; }
public Dialog(IMvxAndroidCurrentTopActivity topActivity) { _topActivity = topActivity; }
public BackgroundTaskManager(IMvxAndroidCurrentTopActivity currentActivity, ISettingsManager settingsManager) { this.settingsManager = settingsManager; this.currentActivity = currentActivity.Activity; }
public UserInteraction(IShowDialogService showDialogService, IMvxAndroidCurrentTopActivity topActivityService) { _showDialogService = showDialogService; _topActivityService = topActivityService; }
public UserSettings(IMvxAndroidCurrentTopActivity topActivity) { _topActivity = topActivity; _preferences = topActivity.Activity.GetSharedPreferences(topActivity.Activity.PackageName, Android.Content.FileCreationMode.Private); }
public SecureDataStore(IMvxAndroidCurrentTopActivity currentTopActivity) { _accountStore = AccountStore.Create(currentTopActivity.Activity); }