zoukankan      html  css  js  c++  java
  • WindowId 译

    public                  class

    WindowId

          extends Object                 implements                Parcelable          

    java.lang.Object
       ↳ android.view.WindowId

    Class Overview 类的概览


    Safe identifier for a window.  This currently allows you to retrieve and observe the input focus state of the window.  Most applications will not use this, instead relying on the simpler (and more efficient) methods available on View.  This classes is useful when window input interactions need to be done across processes: the class itself is a Parcelable that can be passed to other processes for them to interact with your window, and it provides a limited safe API that doesn't allow the other process to negatively harm your window.

    一个window的安全标识符。它通常允许你获得和观察 window 的input 焦点状态。大多数应用将不会使用这个,代替的是,依赖一个在View上可得到的更简单(有效的)方法。然而这个类有很有用的,当窗口的输入交互需要跨进程:这个类它自己是一个闭包,它可以被传递到其他进程,用来和你的window交互。而且它提供,一个有限安全的API,这个API不允许其他进程对window造成消极的伤害。

    总结:

    内嵌的类     class WindowId.FocusObserver 。一个子类,用于观察 一个WindowId焦点状态的改变。

    继承的常量    From interface android.os.Parcelable

    int

    CONTENTS_FILE_DESCRIPTOR

    文件内容描述符

    Bit masks for use with describeContents(): each bit represents a kind of object considered to have potential special significance when marshalled.

    使用describeContents():每个bit 代表一种对象,当被marshalled是有相当的潜在的特殊的意义。

    int

    PARCELABLE_WRITE_RETURN_VALUE

    封装的可写返回值

    Flag for use with writeToParcel(Parcel, int): the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)".

    使用writeToParcel(Parcel,int)的标识,这个正被写的对象是一个返回值,是一个函数“Parcelable someFunction()”,或者 “void someFunction(out Parcelable)”,或者“void someFunction(inout Parcelable)”的结果

    Fields 字段
    public         static        final          Creator<WindowId> CREATOR  

    Public Methods公共方法
                                                                            int        

    describeContents()                

    用这个可打包的 marshalled的描述,来包含其中的各种对象

    Describe the kinds of special objects contained in this Parcelable's marshalled representation.
                                                                            boolean        

    equals(Object otherObj)                

    两个IntentSender object的比较操作。相同包的相同操作时,它返回true。

    Comparison operator on two IntentSender objects, such that true is returned then they both represent the same operation from the same package.
                                                                            int        

    hashCode()         

    返回这个对象的一个整型的hash码。       

    Returns an integer hash code for this object.
                                                                            boolean        

    isFocused()       

    获得目前相关联的windows的焦点状态。         

    Retrieve the current focus state of the associated window.
                                                                            void        

    registerFocusObserver(WindowId.FocusObserver observer)  

    开始监视window的焦点状态的改变。              

    Start monitoring for changes in the focus state of the window.
    String        

    toString()       

    返回一个包含一个精确的,人类可读懂的这个对象的描述  。

    Returns a string containing a concise, human-readable description of this object.
                                                                            void        

    unregisterFocusObserver(WindowId.FocusObserver observer)

     停止监视窗口焦点状态的改变。       

    Stop monitoring changes in the focus state of the window.
                                                                            void        

    writeToParcel(Parcel out, int flags)         

     扁平化这个对象到一个可打包的。

    Flatten this object in to a Parcel
  • 相关阅读:
    微软企业库4.1学习笔记(十一)企业库的核心类 Virus
    微软企业库4.1学习笔记(七)创建对象 续集1 Virus
    微软企业库4.1学习笔记(五)对象创建和依赖注入方法 Virus
    微软企业库4.1学习笔记(十六)缓存模块4 服务器场中的缓存使用 Virus
    Android知识汇总
    移动UI研究学习汇总
    iOS独立存储Demo(调试过可以运行)
    The Official Preppy Handbook 目录
    一个好的App架构应该包括什么?
    转身再不仅仅只是开发人员
  • 原文地址:https://www.cnblogs.com/muyable/p/3778637.html
Copyright © 2011-2022 走看看