Files
neochat/src/kandroidextras/android/activity.h
James Graham 644f5c0ce1 Permission Manager
Add permission manager from Itinerary so that Android permissions can be checked.

Note at the moment the request permission functions are not hooked up so on Android the permission will need to be manually set on. I'll hook this up later but I wanted to confirm my suspicion on notifications being the current cause of crashes.
2024-10-01 17:29:39 +00:00

30 lines
657 B
C++

/*
SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KANDROIDEXTRAS_ACTIVITY_H
#define KANDROIDEXTRAS_ACTIVITY_H
#include "kandroidextras_export.h"
namespace KAndroidExtras
{
class Intent;
/** Methods around android.app.Activity. */
namespace Activity
{
/** Returns the Intent that started the activity. */
KANDROIDEXTRAS_EXPORT Intent getIntent();
/** Same as QtAndroid::startActivity(), but with exception handling. */
KANDROIDEXTRAS_EXPORT bool startActivity(const Intent &intent, int receiverRequestCode); // TODO add callback arg
}
}
#endif // KANDROIDEXTRAS_ACTIVITY_H