合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
Class Info |
|---|
public class Scope implements IMessageEntity, Parcelable 描述一个OAuth 2.0的请求授权,对用户安全有影响,当请求授权时,会产生一个授权对话框。 |
Parameters
Name | Type | Constraint | Description |
|---|---|---|---|
scopeUri | String | Y | 授权资源的URI。 scopeUri样例描述:
|
Method |
|---|
public String getScopeUri() 获取当前Scope对应的授权URI。 |
Returns
Type | Description |
|---|---|
String | 返回当前Scope对应的授权URI。 |
Method |
|---|
public boolean equals(Object o) 判断两个实例是否相等。 |
Parameters
Name | Type | Constraint | Description |
|---|---|---|---|
o | Object | Y | 待比较的对象。 |
Returns
Method |
|---|
public int describeContents() 该方法在序列化和反序列化时使用。 |
Returns
Type | Description |
|---|---|
int | 返回0。 |
Method |
|---|
public void writeToParcel(Parcel parcel, int i) 该方法在序列化和反序列化时使用。 |
Parameters
Name | Type | Constraint | Description |
|---|---|---|---|
parcel | Parcel | Y | parcel对象。 |
i | int | Y | 标记。 |
Method |
|---|
public final int hashCode() 重写java.lang.Object基类方法,计算Scope对象的hashCode。 |
Returns
Type | Description |
|---|---|
int | hash code值。 |
Method |
|---|
public final String toString() 重写java.lang.Object基类方法,转换为字符串。 |
Returns
Type | Description |
|---|---|
String | 转换后的字符串。 |