blob: 500cb1c5e257fb23a08d940a039f61b0d4c0cb7d [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.vr;
import android.app.Activity;
import org.chromium.base.annotations.UsedByReflection;
/**
* This class provides methods to call into AR. It will be compiled into Chrome
* only if |enable_arcore| is set at build time.
*/
@UsedByReflection("ArDelegateProvider.java")
public class ArDelegateImpl implements ArDelegate {
@UsedByReflection("ArDelegateProvider.java")
public ArDelegateImpl() {}
@Override
public void init() {
ArCoreInstallUtils.installArCoreDeviceProviderFactory();
}
@Override
public void registerOnResumeActivity(Activity activity) {
ArCoreInstallUtils.onResumeActivityWithNative(activity);
}
}