콘텐츠로 이동

ServiceAccess 모듈

앱 접속 제한이나 안내 화면 표시에 필요한 정보를 Hive Axyl 서버에서 조회하는 모듈입니다. 서버 점검 조회, 클라이언트 업데이트 확인, 서비스 국가 제한 확인을 제공합니다.

모듈 정보

  • 패키지: com.com2usplatform.hiveaxyl.serviceaccess
  • 네임스페이스: Hive.Axyl.ServiceAccess
  • 지원 플랫폼: 전체 (서버 API)
  • 최소 사양: Unity 6000.0+

제공 인터페이스

인터페이스 등록 메서드 설명
IServiceAccessService AddServiceAccess() 서버 점검 조회, 클라이언트 업데이트 확인, 서비스 국가 제한 확인

기능의 구성과 앱이 처리할 일은 서비스 접근 제어를, 콘솔에서 항목을 등록하는 방법은 서비스 접근 제어 항목을 참조하세요.

등록과 획득

HiveBootstrap.Initialize의 등록 단계에서 AddServiceAccess()로 등록한 뒤 HiveCore.Resolve<T>()로 가져옵니다.

using Hive.Axyl.Core;
using Hive.Axyl.Core.Unity;   // HiveBootstrap
using Hive.Axyl.ServiceAccess;

var config = CoreConfig.CreateBuilder("{appId}").Build();

HiveBootstrap.Initialize(config, builder =>
{
    builder.AddServiceAccess();
});

IServiceAccessService serviceAccess = HiveCore.Resolve<IServiceAccessService>();

IServiceAccessService의 모든 메서드는 로그인 세션이 필요하지 않으므로 앱을 시작한 직후 로그인 전에도 호출할 수 있습니다. 설치 절차와 초기화 방법은 모듈 설치 및 초기화를 참조하세요.