What is Android's icicle parameter?

后端 未结 2 1533
伪装坚强ぢ
伪装坚强ぢ 2020-12-25 10:26

I\'ve noticed in some coding people use icicle with the onCreate method, and I was wondering what it is exactly:

public class About extends Activity {
    @O         


        
相关标签:
2条回答
  • 2020-12-25 10:49

    "icicle" is sometimes used as the name of the parameter because onSaveInstanceState() used to be called onFreeze().

    0 讨论(0)
  • 2020-12-25 10:56

    The name isn't magic. It's just a placeholder for one of the formal parameters. As shown by the API, onCreate takes one Bundle parameter. It's up to you what to call it.

    0 讨论(0)
提交回复
热议问题