2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/integration-api/adaptor-framework/android/android-framework.h>
22 #include <dali/integration-api/debug.h>
25 #include <dali/internal/adaptor/android/android-framework-impl.h>
33 AndroidFramework& AndroidFramework::New()
35 return Internal::Adaptor::AndroidFramework::New();
38 void AndroidFramework::Delete()
40 Internal::Adaptor::AndroidFramework::Delete();
43 void AndroidFramework::SetNativeApplication( android_app* application )
45 mImpl->SetNativeApplication( application );
48 android_app* AndroidFramework::GetNativeApplication() const
50 return mImpl->GetNativeApplication();
53 void AndroidFramework::SetJVM( JavaVM* jvm )
58 JavaVM* AndroidFramework::GetJVM() const
60 return mImpl->GetJVM();
63 void AndroidFramework::SetApplicationAssets( AAssetManager* assets )
65 mImpl->SetApplicationAssets( assets );
68 AAssetManager* AndroidFramework::GetApplicationAssets() const
70 return mImpl->GetApplicationAssets();
73 void AndroidFramework::SetApplicationConfiguration( AConfiguration* configuration )
75 mImpl->SetApplicationConfiguration( configuration );
78 AConfiguration* AndroidFramework::GetApplicationConfiguration() const
80 return mImpl->GetApplicationConfiguration();
83 void AndroidFramework::SetApplicationWindow( ANativeWindow* window )
85 mImpl->SetApplicationWindow( window );
88 ANativeWindow* AndroidFramework::GetApplicationWindow() const
90 return mImpl->GetApplicationWindow();
93 void AndroidFramework::OnTerminate()
98 void AndroidFramework::OnPause()
103 void AndroidFramework::OnResume()
108 void AndroidFramework::OnWindowCreated( ANativeWindow* window )
110 mImpl->OnWindowCreated( window );
113 void AndroidFramework::OnWindowDestroyed( ANativeWindow* window )
115 mImpl->OnWindowDestroyed( window );
118 AndroidFramework::~AndroidFramework()
124 AndroidFramework& AndroidFramework::Get()
126 return Internal::Adaptor::AndroidFramework::Get();
129 AndroidFramework::AndroidFramework()
134 } // namespace Integration