Show / Hide Table of Contents

Class BrowserAuthorize

Class for opening browser and carrying out application authentication

Inheritance
Object
BrowserAuthorize
Namespace: Pixiv.VroidSdk.Legacy
Assembly: VRoidSDK.dll
Syntax
[Obsolete("BrowserAuthorize is deprecated.")]
public class BrowserAuthorize : MonoBehaviour

Properties

RedirectUri

Redirect destination after OAuth authentication

Declaration
public string RedirectUri { get; }
Property Value
Type Description
String

Methods

GenerateInstance(SDKConfiguration)

Create GameObject instance for browser authentication

Declaration
public static BrowserAuthorize GenerateInstance(SDKConfiguration sdkConfig)
Parameters
Type Name Description
SDKConfiguration sdkConfig

Application setting data

Returns
Type Description
BrowserAuthorize

Browser authentication instance

OnCancelAuthorize(String)

Method called when browser authentication canceled

Declaration
public void OnCancelAuthorize(string _message)
Parameters
Type Name Description
String _message

Message

Remarks

This method is used when OAuth authentication code is cancelled from iOS native plugin

OnOpenUrl(String)

Method called when redirected by URL schema Extract authentication code embedded in path, carry out registration

Declaration
public void OnOpenUrl(string url)
Parameters
Type Name Description
String url

Redirect URL

Remarks

This method is also used when receiving OAuth authentication code from iOS native plugin

OpenBrowser(Action<Boolean>)

Open browser to issue OAuth authentication code

Declaration
public void OpenBrowser(Action<bool> onRegistered)
Parameters
Type Name Description
Action<Boolean> onRegistered

Callback function after registration

RegisterCode(String)

Register authentication code

Declaration
public void RegisterCode(string authCode)
Parameters
Type Name Description
String authCode

Authentication code to register

In This Article
Back to top Generated by DocFX