MIF 3.2.0 README
Retired DISLab
3.2.0에서 변경된 점
Card 사용 Library
- 3.0.1부터 Deprecated 되어있던 onReceiveCard 함수가 삭제되었습니다.
- onAgentReply 함수를 사용해주셔야 하며, 아래에 설명이 있습니다.
- 이전에 이미 onAgentReply로 모두 바꾸셨다면 아래의 설명에 따라 인자만 바꿔주시면 됩니다.
- onAgentReply(String agentName, int requestCode, String receivedData) 함수가 변경되었습니다.
- onAgentReply(String context, String receivedData)로 함수가 변경되었습니다. requestCode의 활용도를 높이기 위해 String으로 바꾸면서 Context라고 이름이 변경되었습니다. 또한 agentName을 쓰지 않아도 되도록 변경되면서 context가 첫 번째 인자가 되고, receivedData가 두 번째 인자가 되었습니다.
- callAgent(String data, int requestCode) 함수가 변경되었습니다.
- callAgent(String context, String data)를 사용해주셔야 합니다. requestCode의 활용도를 높이기 위해 String으로 바꾸면서 Context라고 이름이 변경되었습니다. 또한 인자의 순서가 서로 바뀌었습니다.
Agent 사용 Library
- onRequestCard(String receivedData) 함수가 변경되었습니다.
- onRequestCard(String context, String receivedData)로 변경되었습니다. 기존에 내부적으로 처리되었던 requestCode(현재는 context로 변경)가 이제 인자로 넘어오게 되어서 직관적으로 처리할 수 있습니다.
- sendResult(String agent, String data) 함수가 변경되었습니다.
- sendResult(String context, String data)로 함수가 변경되었습니다. agent 명은 쓰지 않아도 되므로 제외시켰으며, 그 자리에 기존에는 내부적으로 처리되어 신경쓰지 않아도 되었던 context(기존 requestCode와 같은 기능)를 보낼 수 있도록 변경되었습니다.