mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-15 15:39:12 +02:00
42 lines
997 B
C++
42 lines
997 B
C++
//
|
|
// AndroidHelper.cpp
|
|
// interface/src
|
|
//
|
|
// Created by Gabriel Calero & Cristian Duarte on 3/30/18.
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
#include "AndroidHelper.h"
|
|
#include <QDebug>
|
|
|
|
AndroidHelper::AndroidHelper() {
|
|
}
|
|
|
|
AndroidHelper::~AndroidHelper() {
|
|
}
|
|
|
|
void AndroidHelper::requestActivity(const QString &activityName, const bool backToScene) {
|
|
emit androidActivityRequested(activityName, backToScene);
|
|
}
|
|
|
|
void AndroidHelper::notifyLoadComplete() {
|
|
emit qtAppLoadComplete();
|
|
}
|
|
|
|
void AndroidHelper::notifyEnterForeground() {
|
|
emit enterForeground();
|
|
}
|
|
|
|
void AndroidHelper::notifyEnterBackground() {
|
|
emit enterBackground();
|
|
}
|
|
|
|
void AndroidHelper::performHapticFeedback(int duration) {
|
|
emit hapticFeedbackRequested(duration);
|
|
}
|
|
|
|
void AndroidHelper::showLoginDialog() {
|
|
emit androidActivityRequested("Login", true);
|
|
}
|