summaryrefslogtreecommitdiffstats
path: root/src/android/jar/src/org/qtproject/qt/android/QtServiceDelegate.java
blob: 9791bf78fc145809eeb4227f8334f45cc7ef1f4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2016 BogDan Vatra <bogdan@kde.org>
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

package org.qtproject.qt.android;

import android.app.Service;

public class QtServiceDelegate
{
    private Service m_service = null;

    QtServiceDelegate(Service service)
    {
        m_service = service;

        // Set native context
        QtNative.setService(m_service, this);
    }
}