FileDocCategorySizeDatePackage
MediaProjectionInfo.javaAPI DocAndroid 5.1 API2665Thu Mar 12 22:22:30 GMT 2015android.media.projection

MediaProjectionInfo

public final class MediaProjectionInfo extends Object implements android.os.Parcelable
hide

Fields Summary
private final String
mPackageName
private final android.os.UserHandle
mUserHandle
public static final Parcelable.Creator
CREATOR
Constructors Summary
public MediaProjectionInfo(String packageName, android.os.UserHandle handle)

        mPackageName = packageName;
        mUserHandle = handle;
    
public MediaProjectionInfo(android.os.Parcel in)

        mPackageName = in.readString();
        mUserHandle = UserHandle.readFromParcel(in);
    
Methods Summary
public intdescribeContents()

        return 0;
    
public booleanequals(java.lang.Object o)

        if (o instanceof MediaProjectionInfo) {
            final MediaProjectionInfo other = (MediaProjectionInfo) o;
            return Objects.equals(other.mPackageName, mPackageName)
                    && Objects.equals(other.mUserHandle, mUserHandle);
        }
        return false;
    
public java.lang.StringgetPackageName()

        return mPackageName;
    
public android.os.UserHandlegetUserHandle()

        return mUserHandle;
    
public inthashCode()

        return Objects.hash(mPackageName, mUserHandle);
    
public java.lang.StringtoString()

        return "MediaProjectionInfo{mPackageName="
            + mPackageName + ", mUserHandle="
            + mUserHandle + "}";
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeString(mPackageName);
        UserHandle.writeToParcel(mUserHandle, out);