다음을 통해 공유


Intent.ParseIntent(Resources, XmlReader, IAttributeSet) 메서드

정의

XML에서 "intent" 요소(및 해당 자식)를 구문 분석하고 Intent 개체를 인스턴스화합니다.

[Android.Runtime.Register("parseIntent", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)Landroid/content/Intent;", "")]
public static Android.Content.Intent ParseIntent (Android.Content.Res.Resources resources, System.Xml.XmlReader parser, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register("parseIntent", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)Landroid/content/Intent;", "")>]
static member ParseIntent : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet -> Android.Content.Intent

매개 변수

resources
Resources

리소스를 부풀릴 때 사용할 리소스입니다.

parser
XmlReader

"의도" 태그를 가리키는 XML 파서입니다.

attrs
IAttributeSet

현재 <var>파서</var> 위치에서 확장된 특성 데이터를 검색하기 위한 AttributeSet 인터페이스입니다.

반환

XML 데이터와 일치하는 Intent 개체입니다.

특성

예외

XML 구문 분석 오류가 있는 경우

I/O 오류가 있는 경우

설명

XML에서 "intent" 요소(및 해당 자식)를 구문 분석하고 Intent 개체를 인스턴스화합니다. 지정된 XML 파서는 구문 분석이 시작되어야 하는 태그("의도"라고도 함)에 있어야 하며, 여기서 기본 작업, 데이터, 형식 및 패키지 및 클래스 이름을 검색합니다. 그런 다음 함수는 모든 자식 요소로 구문 분석하여 범주 android:name="xxx"> 태그를 찾아 <범주 및 <추가 android:name="xxx" android:value="yyy">를 추가하여 의도에 추가 데이터를 연결합니다.

에 대한 android.content.Intent.parseIntent(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상