Beispiel #1
0
            /// <summary>
            /// 在ContextWrapper OnCreate時呼叫
            /// 指定ContextWrapper建立Broadcast
            /// </summary>
            /// <param name="context">指定ContextWrapper</param>
            public void OnCreate(ContextWrapper context, OnReceiveFunc _onReceiveFunc)
            {
                contextWrapper = context;
                Intent sendIntent = new Intent(scanservice_toapp);

                contextWrapper.SendBroadcast(sendIntent);

                onReceiveFunc = _onReceiveFunc;
            }
Beispiel #2
0
 /// <summary>
 /// 在ContextWrapper OnCreate時呼叫
 /// 指定ContextWrapper建立Broadcast
 /// </summary>
 /// <param name="context">指定ContextWrapper</param>
 public void OnCreate(ContextWrapper context, OnReceiveFunc _onReceiveFunc)
 {
     scanservice.OnCreate(context, _onReceiveFunc);
 }