Giter Site home page Giter Site logo

intentdemo's Introduction

Intent


##什么是Intent?##

##Intent有什么作用## 连接各个组件

  1. 用来激活启动其他应用程序组件
  2. 作为传递数据的桥梁

##Intent的七大属性##

  1. ComponentName 组件名称 目标组件的全类名

setComponent() setClass() setClassName() getComponent

  1. Ation

普通的字符串 表示Intent将要执行动作的描述 setAction() getAction()

  1. Data

用于向Action属性提供操作的数据 URL对象 scheme://host:port/path 协议头,主机,端口,路径

  1. Type

对Data进行描述 当data为null时,才有效 指定Data所指丁的Uri对应的MIME类型 不指定会根据数据自动推导

  1. Category

字符串 为Action提供额外的附件类别信息 可以有多个Category

  1. Extra

用于多个Action之间的数据交换 通过键值进行数据存储

  1. flags

标记组件如何启动 以及启动后如何对待 FLAG_ACTIVITY_SINGLE_TOP FLAG_ACTIVITY_CLEAR_TOP

intentdemo's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.